import { Translator } from '../../i18n/translator'; import { PowerPointViewerProps } from '../types'; import { CreateViewerStateOptions } from './create-viewer-state-types'; /** * The values only the component that renders the markup can supply: its * `bind:this` targets, the measured viewport, the master-view scale a child * reports back, and the already locale-bound translator. */ export interface ViewerDomAccessors { t: Translator; getStageHolderEl(): HTMLDivElement | undefined; getRootEl(): HTMLDivElement | undefined; getViewportWidth(): number; getViewportHeight(): number; getMasterScale(): number; } /** * Map `PowerPointViewer`'s host props onto {@link CreateViewerStateOptions}. * * EVERY field is a getter or a closure over `getProps()`, never a snapshot: * `$props()` values are only reactive when read inside a function, so building * this object with plain `onload,` shorthand would freeze the viewer to the * host's first render and silently ignore every later callback or config * change. Splitting the mapping out here keeps that rule in one place (and the * root SFC within the repo's file-size budget). * * The prop defaults applied below are the same ones the component's own * `$props()` destructuring used to declare. */ export declare function toViewerStateOptions(getProps: () => PowerPointViewerProps, dom: ViewerDomAccessors): CreateViewerStateOptions; //# sourceMappingURL=viewer-state-options.d.ts.map