import type { Duration } from "webappwiz/time"; import type { Cue } from "./cue.js"; import { type AudioSink, type MicPermission, type Microphone, type Recording } from "./microphone.js"; /** Says `said` as each take starts, and more on `speak`, unless a test makes it fail. */ export declare class FakeMicrophone implements Microphone { said: string; /** Set to make the next start fail with it, as a denied mic does. */ failure: Error | undefined; /** What `permission` answers. */ allowed: MicPermission; /** Whether the last take still holds the mic. */ open: boolean; /** The cues the last take played, in order. */ cues: Cue[]; private sink; private dispatcher; permission(): Promise; start(sink: AudioSink): Promise; /** Says `text` into the take under way, as its bytes, at a speaking level. */ speak(text: string): void; /** Ticks once, as a real mic does each `TICK`. */ tick(level: number | null): void; /** Ticks at `level` for as long as `span`. */ hold(level: number | null, span: Duration): void; /** Stops hearing, as a call or a hidden page makes a phone do. */ interrupt(why: string): void; }