import type { ShadowContainer } from '../widget/shadow.js'; import type { I18nMessages } from '../i18n/index.js'; export type ToolbarMode = 'markup' | 'record'; export declare class AnnotationToolbar { private el; private hintBarEl; private hintTextEl; private host; private markupBtn; private recordBtn; private messages; private currentMode; private readonly touch; private handlePointerMove; private touchHintDismissListening; private dismissTouchHint; private stopTouchHintDismissListening; constructor(shadow: ShadowContainer, messages: I18nMessages, onExit: () => void, onModeChange?: (mode: ToolbarMode) => void, position?: 'left' | 'right', showTouchHint?: boolean); private buildHTML; private idleHint; setMode(mode: ToolbarMode): void; getMode(): ToolbarMode; /** * How much vertical room the bar occupies, including any safe-area inset. * * Falls back to the height the stylesheet declares when measurement returns * nothing — which happens before first paint, and in any environment without * layout. Reserving the wrong amount is recoverable; reserving none means * the bar covers the page again, which is the defect this exists to fix. */ height(): number; destroy(): void; } //# sourceMappingURL=toolbar.d.ts.map