import { AudioSettings } from '../../compile/types'; import { Code } from '../../ast/types'; export declare const TEST_PARAMETERS: { bitDepth: 32 | 64; }[]; /** * This function sets the assemblyscript compiler so that test helpers can use it. * We don't want to bundle assemblyscript because WebPd_compiler is only supposed * to generate code, not compile it. Also, assemblyscript is quite heavy and causes * problems with bundling. Therefore we leave it to the consumer to load it themselves. */ export declare const setAsc: (asc: any) => any; export declare const compileAssemblyscript: (code: Code, bitDepth: AudioSettings['bitDepth']) => Promise; export declare const wasmBufferToRawModule: (buffer: ArrayBuffer, imports?: any) => Promise; export declare const ascCodeToRawModule: (code: Code, bitDepth: AudioSettings['bitDepth'], imports?: any) => Promise;