import { type CanvasEdge, type CanvasEdgeLike, type CanvasEditorDocument, type CanvasEditorDocumentOptions, type CanvasNode } from '@pixerate/editor/canvas'; import type { EditorDocument } from '@pixerate/editor/persistence'; export type CreateCanvasDocumentOptions = Omit, 'subscribe'>; /** * Svelte 5 rune: the save / load / undo contract (kind `canvas`) for nodes and edges held in * `$state`, for `createEditorAutosave` or `createDocumentToolProvider`. Reads `getNodes()` / * `getEdges()` reactively, so changes the history does not see (a finished drag, an edge * removed by Svelte Flow) count too; selection, measuring, drag frames, `omitNodeKeys` / * `omitEdgeKeys` and the viewport do not. Parity with * React's `useCanvasEditorDocument`. Call `destroy()` when done. */ export declare function createCanvasDocument(options: CreateCanvasDocumentOptions): EditorDocument>;