/**
 * Create a new AudioContext
 */
export declare function createAudioContext(): AudioContext;
/**
 * Create a new OfflineAudioContext
 */
export declare function createOfflineAudioContext(channels: number, length: number, sampleRate: number): OfflineAudioContext;
/**
 * Either the online or offline audio context
 */
export declare type AnyAudioContext = AudioContext | OfflineAudioContext;
/**
 * Interface for things that Tone.js adds to the window
 */
interface ToneWindow extends Window {
    TONE_SILENCE_LOGGING?: boolean;
    TONE_DEBUG_CLASS?: string;
}
/**
 * A reference to the window object
 * @hidden
 */
export declare const theWindow: ToneWindow | null;
/**
 * If the browser has a window object which has an AudioContext
 * @hidden
 */
export declare const hasAudioContext: boolean | null;
export declare function createAudioWorkletNode(context: AnyAudioContext, name: string, options?: Partial<AudioWorkletNodeOptions>): AudioWorkletNode;
export {};
