import { PptxSlide } from 'pptx-viewer-core'; import { CanvasSize, OutlineEdit, OutlineRow } from 'pptx-viewer-shared'; export interface OutlineViewSessionInput { getSlides: () => PptxSlide[]; /** Laid-out size the outline's created title element is sized against. */ getCanvasSize: () => CanvasSize; /** False for a read-only deck, which makes every edit a no-op. */ canEdit: () => boolean; /** * Replaces the whole deck. Wired to the binding's generic multi-slide commit * (`EditorState.commitSlides`) so an outline edit is one ordinary undo step * rather than a second, outline-specific history path. */ onCommit: (slides: PptxSlide[]) => void; /** Moves the editor's active slide, so leaving the outline lands on it. */ onActiveSlide: (index: number) => void; } export declare class OutlineViewSession { #private; constructor(input: OutlineViewSessionInput); /** The deck's outline. A getter, so reading it in a template tracks the deck. */ get rows(): OutlineRow[]; /** Apply one edit, or do nothing when it changes the deck in no way. */ run(edit: OutlineEdit): void; /** * Handle one key press inside a row. `preventDefault` is the shared module's * call: Tab would otherwise walk out of the outline entirely, and Enter would * submit a surrounding form on a host page that has one. */ handleKey(event: KeyboardEvent, rowKey: string): void; /** * Move the caret to the row the last edit asked for, once that row exists. * * Rows are matched by comparing the attribute rather than by an attribute * selector: a row key embeds `|` separators, and quoting or escaping those * into a selector is a per-engine hazard for no gain over a plain scan of a * list that is only as long as the deck's text. */ restoreFocus(container: HTMLElement | undefined): void; } //# sourceMappingURL=outline-view.svelte.d.ts.map