/// <reference types="dom-speech-recognition" preserve="true" />
/**
 * Hook for speech-to-text conversion using the Web Speech API.
 * Provides real-time voice recognition with support for interim results and automatic error handling.
 */
export interface UseSpeechRecognitionProps {
    /** onResult handler */
    onResult: (text: string) => void;
    /** onInterimResult handler */
    onInterimResult?: (text: string) => void;
    /** BCP 47 language tag */
    langCode?: string;
}
export default function useSpeechRecognition({ onResult, onInterimResult, langCode }: UseSpeechRecognitionProps): {
    supported: boolean;
    active: boolean;
    error: string | null;
    start: () => void;
    stop: () => void;
};
//# sourceMappingURL=useSpeechRecognition.d.ts.map