import { EventEmitter } from "node:events";
import type { StreamingTranscriptionSession } from "../../../speech-provider.js";
import { SherpaOnlineRecognizerEngine } from "./sherpa-online-recognizer.js";
export declare class SherpaRealtimeTranscriptionSession extends EventEmitter implements StreamingTranscriptionSession {
    private readonly engine;
    private stream;
    private connected;
    readonly requiredSampleRate: number;
    private currentSegmentId;
    private previousSegmentId;
    private lastPartialText;
    private readonly tailPaddingMs;
    constructor(params: {
        engine: SherpaOnlineRecognizerEngine;
        tailPaddingMs?: number;
    });
    connect(): Promise<void>;
    appendPcm16(pcm16le: Buffer): void;
    commit(): void;
    clear(): void;
    close(): void;
}
//# sourceMappingURL=sherpa-realtime-session.d.ts.map