export type ThemeName = 'light' | 'dark'; export type Scene = { elements: any[]; appState?: Record; files?: Record; }; export type ExcalidrawWrapperProps = { initialData?: Scene; readOnly?: boolean; theme?: ThemeName; lang?: string; gridMode?: boolean; zenMode?: boolean; }; export type SceneChangeDetail = Scene & { source?: 'user' | 'program' }; export type ReadyDetail = { apiAvailable: boolean }; export type RequestExportDetail = { type: 'png' | 'svg'; withBackground?: boolean };