export type UseChatSttOptions = {
    onStart?: () => void;
    onEnd?: () => void;
    onError?: (err: unknown) => void;
    onResult?: (text: string, isFinal: boolean) => void;
    lang?: string;
};
/**
 * A React hook for handling speech-to-text recognition using the Web Speech API.
 * It provides functionality to start and stop speech recognition, manage transcripts,
 * and handle various events like start, end, error, and result.
 *
 * @param options - Configuration options for the speech recognition.
 * @param options.onStart - Optional callback invoked when speech recognition starts.
 * @param options.onEnd - Optional callback invoked when speech recognition ends.
 * @param options.onError - Optional callback invoked when an error occurs during recognition.
 * @param options.onResult - Optional callback invoked with the transcript and whether it's final.
 * @param options.lang - Optional language code for recognition (defaults to navigator.language or 'en-US').
 *
 * @returns An object containing:
 * - `supported`: Boolean indicating if speech recognition is supported in the current browser.
 * - `active`: Boolean indicating if recognition is currently active.
 * - `transcript`: The current transcript string.
 * - `start`: Function to start speech recognition.
 * - `stop`: Function to stop speech recognition.
 */
export declare function useChatStt(options?: UseChatSttOptions): {
    supported: boolean;
    active: boolean;
    transcript: string;
    start: () => void;
    stop: () => void;
};
//# sourceMappingURL=useChatStt.d.ts.map