import { EventEmitter_, EventEmitter_EE } from '../../EventEmitter';
import { System } from '../../system';
import { SpeechRecognitionOpt } from '../../types/global/SpeechRecognition';
export type SpeechOpt = {
    grammar?: string;
    lang?: string;
    constinuous?: boolean;
    interim?: boolean;
};
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: SpeechRecognitionOpt);
    private _recording;
    start(): void;
    stop(): void;
}
