import { CanvasSize, ReadingViewCommand, ReadingViewState } from 'pptx-viewer-shared'; /** Breathing room between the slide and the window edge, in CSS pixels. */ export declare const READING_VIEW_PADDING = 24; export interface ReadingViewSessionInput { /** Slide the editor was on when the view was opened. */ initialSlideIndex: number; getSlideCount: () => number; getCanvasSize: () => CanvasSize; /** Called with the slide the reader ended on, so the editor lands there. */ onExit: (slideIndex: number) => void; } export declare class ReadingViewSession { #private; /** Viewport box the SFC binds to; 0 until the first layout pass. */ viewportWidth: number; viewportHeight: number; state: ReadingViewState; constructor(input: ReadingViewSessionInput); /** Fit scale for the slide; 0 before the first layout pass. */ get scale(): number; get canPrevious(): boolean; get canNext(): boolean; /** The "3 / 12" nav-bar counter. */ get counter(): string; run(command: ReadingViewCommand): void; /** * Handle one key press. Must be installed in the CAPTURE phase: the editor * is still mounted under the overlay and listens for its own shortcuts on * `window`, so without swallowing the key first an arrow would turn the page * AND nudge the selected shape, and a bare Delete would destroy a shape the * reader cannot see. */ handleKey(event: KeyboardEvent): void; } //# sourceMappingURL=reading-view.svelte.d.ts.map