declare module 'node-record-lpcm16' {
interface RecordOptions {
sampleRate?: number;
channels?: number;
audioType?: string;
}
interface Recording {
stream(): NodeJS.ReadableStream;
stop(): void;
}
export function record(options?: RecordOptions): Recording;
}