declare type ParamValue = number | string; declare type ParamValueObject = Record; declare type ParamDefinition = number | string; declare type ParamDefinitionObject = Record; declare type DspNodeSerialized = DspNodeFaustSerialized | DspNodePolySerialized; declare type DspNodeFaustSerialized = { type: "faust"; dsp: string; inputs: DspNodeSerialized[]; paramDefs: ParamDefinitionObject; }; declare type DspNodePolySerialized = { type: "poly"; input: DspNodeSerialized; polyphony: number; paramCacheSize?: number; release: ParamDefinition; gate: ParamDefinition; }; declare type InputSetEvent = { type: "set"; time: number; params: Partial; }; declare type InputStopEvent = { type: "stop"; time: number; }; declare type InputEvent = InputSetEvent | InputStopEvent; declare type Props = { initialParams: Partial; dspNodeSerialized: DspNodeSerialized; events: InputEvent[]; }; declare function offlineRenderSynthInner(offlineCtx: OfflineAudioContext, _source: AudioBufferSourceNode, props: Props): Promise; export { offlineRenderSynthInner };