import { type Cue } from "./cue.js"; import { type Recording, type RecordingEvents } from "./microphone.js"; import type { Pcm16Encoder } from "./pcm16-encoder.js"; /** * One take from the mic, its samples encoded as they arrive from the tap. It * keeps the screen awake while it records, and stops hearing, saying why, when * the page is hidden or the system takes the mic, as a call does. */ export declare class BrowserRecording implements Recording { private readonly stream; private readonly context; private readonly tap; private readonly encoder; private readonly disposer; private readonly dispatcher; readonly events: import("webappwiz/events").Events; private squares; private samples; private wakeLock; /** Until when the mic would hear the start cue, so its samples are dropped. */ private deaf; /** Whether to play the stop cue once the mic is let go. */ private stopCue; constructor(stream: MediaStream, context: AudioContext, tap: AudioWorkletNode, encoder: Pcm16Encoder); cue(cue: Cue): void; dispose(): void; /** * Plays the stop cue only now the mic is cold: a phone drops a sound that * plays while it moves its audio off recording. */ private close; private readonly tick; private interrupt; private listen; }