/** * @returns A tupple of a `React.Ref` to attach to an `Audio` element and an `AnimationLink`. * * @see {@link https://lively.infinityfx.dev/docs/hooks/use-audio} */ export default function useAudio({ bands, minFrequency, maxFrequency, smoothing }?: { /** * Amount of bands and subsequent animation values to divide the audio spectrum in to. * * @default 8 */ bands?: number; /** * The minimum audio spectrum frequency in hertz. * * @default 100 */ minFrequency?: number; /** * The maximum audio spectrum frequency in hertz. * * @default 2000 */ maxFrequency?: number; /** * @default .7 */ smoothing?: number; }): readonly [import("react").RefObject<(HTMLAudioElement & { context: AudioContext; sourceNode: MediaElementAudioSourceNode; }) | null>, import("..").AnimationLink];