/**
 * Speech-to-Text module for Mathrok
 * Provides voice input capabilities using Web Speech API with fallbacks
 */
interface SpeechRecognitionResult {
    text: string;
    confidence: number;
    alternatives?: {
        text: string;
        confidence: number;
    }[];
    isFinal: boolean;
}
interface SpeechRecognitionOptions {
    language?: string;
    continuous?: boolean;
    interimResults?: boolean;
    maxAlternatives?: number;
}
/**
 * Speech recognition service
 */
export declare class SpeechToText {
    private recognition;
    private isListening;
    private isSupported;
    private options;
    constructor(options?: Partial<SpeechRecognitionOptions>);
    /**
     * Initialize speech recognition
     */
    private initializeSpeechRecognition;
    /**
     * Check if speech recognition is supported
     */
    isRecognitionSupported(): boolean;
    /**
     * Start listening for speech input
     */
    startListening(callback: (result: SpeechRecognitionResult) => void): Promise<void>;
    /**
     * Stop listening for speech input
     */
    stopListening(): Promise<void>;
    /**
     * Process speech recognition results
     */
    private processRecognitionResult;
    /**
     * One-shot speech recognition
     * Returns a promise that resolves with the recognized text
     */
    recognizeSpeech(): Promise<SpeechRecognitionResult>;
    /**
     * Detect mathematical terms in speech
     * Specialized for mathematical expressions
     */
    recognizeMathExpression(): Promise<SpeechRecognitionResult>;
    /**
     * Process speech specifically for mathematical expressions
     * Applies corrections for common math terms
     */
    private processMathematicalSpeech;
}
export {};
//# sourceMappingURL=speech-to-text.d.ts.map