import { Audio } from './audio'; /** * Create a AudioAnalyser object, which uses an AnalyserNode to analyse audio data. * This uses the Web Audio API. */ export declare class AudioAnalyser { /** An AnalyserNode used to analyze audio. */ analyser: AnalyserNode; /** A Uint8Array with size determined by analyser.frequencyBinCount used to hold analysis data. */ data: Uint8Array; /** * An [AnalyserNode](https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode) used to analyze audio. * @param audio * @param fftSize A non-zero power of two up to 2048, representing the size of the FFT (Fast Fourier Transform) to be used to determine the frequency domain. See this page for details. */ constructor(audio: Audio, fftSize?: number); /** Uses the Web Audio's getByteFrequencyData method. See that page. */ getFrequencyData(): Uint8Array; /** Get the average of the frequencies returned by the getFrequencyData method. */ getAverageFrequency(): number; } //# sourceMappingURL=audioAnalyser.d.ts.map