/** Which tool's colour palette is currently open, if any. */ export type PresentPaletteKey = 'pen' | 'highlighter'; /** DOM getters {@link PresentToolbarChrome.attach} needs from the component. */ export interface PresentToolbarChromeTargets { /** * The positioned show surface the bar floats over. Used only for the * bottom-trigger-zone fast path; a missing container still shows the bar on * any movement, exactly as React's wrapper does. */ getContainer: () => HTMLElement | null; /** The bar itself, so a mousedown outside it can close an open palette. */ getToolbar: () => HTMLElement | null; } export declare class PresentToolbarChrome { #private; /** Whether the bar is currently faded in and accepting pointer events. */ visible: boolean; /** Milliseconds since the show started, refreshed once a second. */ elapsedMs: number; /** The open colour palette, or `null` when both are closed. */ palette: PresentPaletteKey | null; /** * Wire the document listeners and the one-second tick. Returns a teardown, * so a component can hand it straight to `$effect`. */ attach(targets: PresentToolbarChromeTargets): () => void; /** Pointer entered the bar: pin it open until the pointer leaves again. */ enter(): void; /** Pointer left the bar: restart the auto-hide countdown. */ leave(): void; /** * PowerPoint's Ctrl+H: flip the show chrome. Deliberately the same `visible` * flag auto-hide writes, and it re-arms the countdown when it reveals the bar, * so the shortcut leaves the toolbar in a state the pointer can still govern. */ toggleVisible(): void; /** Open `key`'s palette, or close it when it is already the open one. */ togglePalette(key: PresentPaletteKey): void; /** Close both palettes (after picking a colour or choosing a tool). */ closePalettes(): void; } //# sourceMappingURL=presentation-toolbar.svelte.d.ts.map