import { ExcalidrawElement } from "../element/types"; import { AppState, LibraryItems } from "../types"; import type { cleanAppStateForExport } from "../appState"; export interface ExportedDataState { type: string; version: number; source: string; elements: readonly ExcalidrawElement[]; appState: ReturnType; } export interface ImportedDataState { type?: string; version?: number; source?: string; elements?: readonly ExcalidrawElement[] | null; appState?: Readonly> | null; scrollToContent?: boolean; } export interface ExportedLibraryData { type: string; version: number; source: string; library: LibraryItems; } export interface ImportedLibraryData extends Partial {}