/** @packageDocumentation Abstract AudioProperties base class shared by all format-specific audio-properties implementations. */ import { ReadStyle } from "./toolkit/types.js"; /** * Abstract base class providing common audio properties such as length, * bitrate, sample rate, and channel count. */ export declare abstract class AudioProperties { /** The read style used when parsing the audio stream. */ protected _readStyle: ReadStyle; /** * @param readStyle Controls the trade-off between parsing accuracy and * performance. Defaults to {@link ReadStyle.Average}. */ constructor(readStyle?: ReadStyle); /** Duration rounded to the nearest second. */ get lengthInSeconds(): number; /** Exact duration in milliseconds. */ abstract get lengthInMilliseconds(): number; /** * Average bitrate of the audio stream in kb/s. * Returns `0` if the value is not available. */ get bitrate(): number; /** * Sample rate of the audio stream in Hz. * Returns `0` if the value is not available. */ get sampleRate(): number; /** Number of audio channels (e.g. `1` for mono, `2` for stereo). */ abstract get channels(): number; } //# sourceMappingURL=audioProperties.d.ts.map