/** The RMS of a block of 8-bit time-domain samples centred on 128, from 0 to 1. */ export declare const rootMeanSquare: (samples: Uint8Array) => number; /** An RMS as a level from 0 to 1, with room noise cut and speech spread across the range. */ export declare const levelFromRms: (rms: number) => number; /** * Reads the live level of a `MediaStream`'s audio, such as a microphone from * `getUserMedia({ audio: true })` or a remote participant's track, for `VoiceWave` and * `VoiceGlow`'s `audioLevel`. * * Returns a stable getter that measures the level when called, from 0 to 1, so a visualization * reading it once a frame re-renders nothing. It returns `null` while there is no stream or the * browser has no Web Audio, which lets the visualization animate speech on its own. * * The audio graph is torn down when the stream changes and on unmount; the stream's tracks are * left running, since they belong to the caller. */ export declare const useAudioLevel: (stream: MediaStream | null | undefined) => () => number | null; //# sourceMappingURL=useAudioLevel.d.ts.map