import { PdJson } from '@webpd/pd-parser'; import { AbstractionLoader } from '../compile-dsp-graph/instantiate-abstractions'; import { Artefacts } from './types'; /** * A helper to build an abstraction loader. * @param pdFileLoader takes a node type and returns the corresponding pd file. * If the pd file could not be found, the function must throw an UnknownNodeTypeError. */ export declare const makeAbstractionLoader: (pdFileLoader: (nodeType: PdJson.NodeType) => Promise) => AbstractionLoader; export declare class UnknownNodeTypeError extends Error { } export declare const getArtefact: (artefacts: Artefacts, outFormat: K) => Artefacts[K]; export declare const stringifyArrayBuffer: (buffer: ArrayBuffer) => string;