import { Decibels, NormalRange } from "../../core/type/Units"; import { MeterBase, MeterBaseOptions } from "./MeterBase"; export interface MeterOptions extends MeterBaseOptions { smoothing: NormalRange; } /** * Meter gets the [RMS](https://en.wikipedia.org/wiki/Root_mean_square) * of an input signal. It can also get the raw value of the input signal. * * @example * import { Meter, UserMedia } from "tone"; * const meter = new Meter(); * const mic = new UserMedia(); * mic.open(); * // connect mic to the meter * mic.connect(meter); * // the current level of the mic * const level = meter.getValue(); * @category Component */ export declare class Meter extends MeterBase { readonly name: string; /** * A value from between 0 and 1 where 0 represents no time averaging with the last analysis frame. */ smoothing: number; /** * The previous frame's value */ private _rms; /** * @param smoothing The amount of smoothing applied between frames. */ constructor(smoothing?: NormalRange); constructor(options?: Partial); static getDefaults(): MeterOptions; /** * Use [[getValue]] instead. For the previous getValue behavior, use DCMeter. * @deprecated */ getLevel(): Decibels; /** * Get the current decibel value of the incoming signal */ getValue(): number; dispose(): this; }