/** Whether the user has opted in to auto-starting dictation. */ export declare function isVoiceAutoStartEnabled(): boolean; /** Persists the user's auto-start preference. */ export declare function setVoiceAutoStartEnabled(enabled: boolean): void; /** Marks auto-start as already fired in this browser. */ export declare function markVoiceAutoStartTriggered(): void; export interface ShouldAutoStartVoiceOptions { /** Whether the user opted in via `isVoiceAutoStartEnabled()`. */ enabled: boolean; /** Whether the browser/environment can actually run speech input. */ isSpeechSupported: boolean; /** Whether dictation is already listening. */ isListening: boolean; } /** * Pure decision of whether to auto-start dictation right now. Does not read * or write localStorage itself so it stays trivially testable; callers read * the "already triggered" flag and call `markVoiceAutoStartTriggered()`. */ export declare function shouldAutoStartVoice({ enabled, isSpeechSupported, isListening }: ShouldAutoStartVoiceOptions, alreadyTriggered: boolean): boolean; /** Whether auto-start has already fired in this browser. */ export declare function hasVoiceAutoStartTriggered(): boolean;