export interface UseSpeechRecognitionOptions {
    /** BCP-47 language tag. @default InternationalizationProvider locale */
    lang?: string;
    /** Whether recognition continues until explicitly stopped. @default true */
    continuous?: boolean;
    /** Whether interim results are reported. @default true */
    interimResults?: boolean;
    /** Shared AudioContext — uses an internal lazy singleton by default. */
    audioContext?: AudioContext;
    /** Transform transcript text before reporting. */
    transformTranscript?: (text: string) => string;
    /** Called on each transcript result (interim or final). */
    onTranscript?: (transcript: string, isFinal: boolean) => void;
    /** Called when a final result is produced. */
    onResult?: (transcript: string) => void;
    /** Called when a recognition error occurs. */
    onError?: (error: {
        error: string;
        message?: string;
    }) => void;
    /** Called when recognition starts. */
    onStart?: () => void;
    /** Called when recognition ends. */
    onEnd?: () => void;
}
export interface UseSpeechRecognitionReturn {
    /** Whether the browser supports SpeechRecognition. */
    isSupported: boolean;
    /** Whether recognition is currently active. */
    isListening: boolean;
    /** Whether speech is currently being detected. */
    isSpeaking: boolean;
    /** Real-time microphone volume level, 0 to 1. */
    volume: number;
    /** Frequency band levels (low to high), each 0-1. */
    bands: number[];
    /** Raw (uncalibrated) band levels for debugging. */
    rawBands: number[];
    /** The current interim transcript text. */
    interimTranscript: string;
    /** Start speech recognition. */
    start: () => void;
    /** Stop speech recognition gracefully. */
    stop: () => void;
    /** Abort speech recognition immediately. */
    abort: () => void;
    /** Toggle between start and stop. */
    toggle: () => void;
}
export declare function useSpeechRecognition(options?: UseSpeechRecognitionOptions): UseSpeechRecognitionReturn;
//# sourceMappingURL=useSpeechRecognition.d.ts.map