import { DictationFailure } from "./dictation-failure.js"; import type { DictationLink, DictationLinkEvents } from "./dictation-link.js"; /** * A server in a test: hears the bytes a take sends as text, says it all so * far after each, and gives it as the final text, unless told to fail. */ export declare class FakeDictationLink implements DictationLink { private readonly dispatcher; readonly events: import("webappwiz/events").Events; private readonly decoder; text: string; /** Set to make finishing fail with it, as a missing key or a dropped socket does. */ failure: DictationFailure | undefined; open: boolean; send(pcm: Uint8Array): void; finish(): Promise; /** Breaks the take off, as the server does when it lacks `cred`. */ fail(message: string, cred?: string): void; /** Drops the link, as a phone asleep does. */ drop(): void; dispose(): void; }