import { PptxSaveFormat } from 'pptx-viewer-core'; import { EditorState } from './editor-state.svelte'; /** The imperative editing API exposed on the `PowerPointViewer` instance. */ export interface EditingApi { undo(): void; redo(): void; canUndo(): boolean; canRedo(): boolean; deleteSelected(): void; getSelectedElementId(): string | null; save(format?: PptxSaveFormat): Promise; downloadAs(format: PptxSaveFormat, fileName?: string): Promise; downloadPptx(fileName?: string): Promise; packageForSharing(fileName?: string): Promise; } /** * Build the imperative editing API bound to a live `EditorState`. Extracted * from `PowerPointViewer.svelte` so the component only re-exports thin, * one-line bindings (Svelte requires the component's own `export`s for its * instance API, but the bodies can live elsewhere). */ export declare function createEditingApi(editor: EditorState): EditingApi; //# sourceMappingURL=editing-api.d.ts.map