import type { DictationLink, DictationLinkEvents } from "./dictation-link.js"; /** * A take over a WebSocket to a server that relays it with `DictationRelay`: * the audio goes up as bytes, and the server's `DictationMessage`s come back. */ export declare class DictationSocket implements DictationLink { private readonly socket; private readonly dispatcher; readonly events: import("webappwiz/events").Events; private finishing; /** What the server last said went wrong, which a closing take fails with. */ private failure; private ended; private constructor(); /** Opens a take on the socket at `url`. */ static open(url: string | URL): Promise; send(pcm: Uint8Array): void; finish(): Promise; dispose(): void; private readonly receive; private readonly closed; private closing; }