import type { AudioSink } from "./microphone.js"; /** * Turns the mic's float samples, at whatever rate the browser runs at, into * PCM16 at {@link SAMPLE_RATE}: `push` each block as it comes, and `flush` * once the take ends. Sends `sink` each tenth of a second. */ export declare class Pcm16Encoder { private readonly sink; private readonly step; /** Where the next sample falls in the next input, -1 being the last one before it. */ private position; private previous; private chunk; private filled; constructor(inputRate: number, sink: AudioSink); push(samples: Float32Array): void; /** Sends what is left of the last chunk. */ flush(): void; private write; }