import { DspGraph } from '../dsp-graph'; import { CompilerTarget, NodeImplementation, NodeImplementations } from './types'; import { CodeMacros } from './render/types'; /** Helper to get code macros from compile target. */ export declare const getMacros: (target: CompilerTarget) => CodeMacros; /** Helper to get node implementation or throw an error if not implemented. */ export declare const getNodeImplementation: (nodeImplementations: NodeImplementations, nodeType: DspGraph.NodeType) => NodeImplementation; /** * Build graph traversal for all nodes. * This should be exhaustive so that all nodes that are connected * to an input or output of the graph are declared correctly. * Order of nodes doesn't matter. */ export declare const buildFullGraphTraversal: (graph: DspGraph.Graph) => DspGraph.GraphTraversal; export declare const getNodeImplementationsUsedInGraph: (graph: DspGraph.Graph, nodeImplementations: NodeImplementations) => { [nodeType: string]: NodeImplementation<{}>; }; /** * Build graph traversal for all signal nodes. */ export declare const buildGraphTraversalSignal: (graph: DspGraph.Graph) => DspGraph.GraphTraversal; export declare const getGraphSignalSinks: (graph: DspGraph.Graph) => DspGraph.Node[];