import { ContextManager, Context } from '../context'; /** * A context dedicated to audio management. * @zcontext */ export declare class AudioContextContext extends Context { constructorProps: {}; readonly audioContext: AudioContext; private _layers; readonly layers: Map; /** * Creates an instance of AudioContextContext. * @param contextManager - The current ContextManager * @param constructorProps - The constructor properties. */ constructor(contextManager: ContextManager, constructorProps: {}); private _getLayer; /** * Retrieves an audio layer by its name. * @param {string} [name] - The name of the audio layer. * @returns {AudioNode} The audio layer. */ getLayer(name?: string): AudioNode; /** * Sets the volume for a specific audio layer. * @param {string} [name] - The name of the audio layer. * @param {number} v - The new volume level. */ setVolumeForLayer(name: string | undefined, v: number): void; /** * Disposes of the audio context and calls the parent dispose method. * @returns {Promise} A promise that resolves to a boolean indicating whether the disposal was successful. */ dispose(): never; private _resumeAudioContext; } /** * Returns the audio context. */ export declare function useAudioContext(ctx: ContextManager): AudioContext;