export type SpeechRecognitionResult = {
    instance: number;
    index: number;
    text: string;
};
export type onRecognizedHandler = (action: 'add' | 'update', result: SpeechRecognitionResult) => void;
export interface TrawSpeechRecognizerOptions {
    lang: string;
    onRecognized?: onRecognizedHandler;
}
export declare class TrawSpeechRecognizer {
    private _lang;
    /**
     * Speech recognizer
     */
    private _speechRecognition?;
    private _instance;
    private _lastIndex;
    private _currentSentence;
    private _isRunning;
    onRecognized?: onRecognizedHandler;
    constructor({ lang, onRecognized }: TrawSpeechRecognizerOptions);
    static isSupported(): boolean;
    /**
     * Starts speech recognition
     */
    startRecognition: () => void;
    /**
     * Stops speech recognition
     */
    stopRecognition(): void;
    /**
     * Change Language
     */
    changeLanguage(lang: string): void;
    private onResult;
    private onError;
    private onEnd;
    private initSpeechRecognition;
    private restartRecognition;
}
//# sourceMappingURL=TrawSpeechRecognizer.d.ts.map