import { EventEmitter_, EventEmitter_EE } from '../../EventEmitter';
import { System } from '../../system';
import { ISpeechGrammarList } from '../../types/global/ISpeechGrammarList';
import { ISpeechRecognitionOpt } from '../../types/global/ISpeechRecognition';
export type SpeechOpt = {
    grammar?: string;
    lang?: string;
    constinuous?: boolean;
    interim?: boolean;
};
export declare const JSGFStrFrom: (tokens: string[]) => string;
export declare const grammarsFrom: (system: System, tokens: string[]) => ISpeechGrammarList;
export type SpeechRecorder_EE = {
    transcript: [string];
    err: [string];
    end: [];
};
export type SpeechRecorderEvents = EventEmitter_EE<SpeechRecorder_EE> & SpeechRecorder_EE;
export declare class SpeechRecorder extends EventEmitter_<SpeechRecorderEvents> {
    private _recognition;
    private _unlisten;
    constructor(__system: System, opt: ISpeechRecognitionOpt);
    private _recording;
    start(): void;
    stop(): void;
}
