import { CobraEngine } from '@picovoice/cobra-web-core';
export declare class Cobra implements CobraEngine {
    private _pvCobraDelete;
    private _pvCobraProcess;
    private _pvStatusToString;
    private _wasmMemory;
    private _pvFree;
    private _memoryBuffer;
    private _memoryBufferView;
    private _processMutex;
    private _objectAddress;
    private _inputBufferAddress;
    private _voiceProbabilityAddress;
    private static _frameLength;
    private static _sampleRate;
    private static _version;
    private static _cobraMutex;
    private constructor();
    /**
     * Releases resources acquired by WebAssembly module.
     */
    release(): Promise<void>;
    /**
     * Processes a frame of audio. The required sample rate can be retrieved from '.sampleRate' and the length
     * of frame (number of audio samples per frame) can be retrieved from '.frameLength'. The audio needs to be
     * 16-bit linearly-encoded. Furthermore, the engine operates on single-channel audio.
     *
     * @param pcm - A frame of audio with properties described above.
     * @return Probability of voice activity. It is a floating-point number within [0, 1].
     */
    process(pcm: Int16Array): Promise<number>;
    get version(): string;
    get sampleRate(): number;
    get frameLength(): number;
    /**
     * Creates an instance of the the Picovoice Cobra voice activity detection (VAD) engine.
     * Behind the scenes, it requires the WebAssembly code to load and initialize before
     * it can create an instance.
     *
     * @param accessKey - AccessKey
     * generated by Picovoice Console
     *
     * @returns An instance of the Cobra engine.
     */
    static create(accessKey: string): Promise<Cobra>;
    private static initWasm;
}
export default Cobra;
//# sourceMappingURL=cobra.d.ts.map