import type { Transcription, TranscriptionEvents } from "./transcriber.js"; /** One take's websocket to OpenAI's Realtime API. */ export declare class OpenAiTranscription implements Transcription { private readonly socket; private readonly dispatcher; readonly events: import("webappwiz/events").Events; /** Each item's text, in the order it was first heard. */ private readonly items; private readonly completed; private committed; private sent; private finishing; private failure; private constructor(); /** Connects with `apiKey` and sets the session up with `update`. */ static open(url: string, apiKey: string, update: object): Promise; append(pcm: Uint8Array): void; finish(): Promise; dispose(): void; private readonly receive; private readonly closed; /** Resolves `finish` once every item, the committed one too, is final. */ private settle; private fail; private text; private send; }