import { ParsedRegistry } from './ParsedRegistry.js'; import { TextModule } from './ParseModule.js'; import { FoundRef } from './TraverseRefs.js'; /** * Produce a linked wgsl string with all directives processed * (e.g. #import'd functions from other modules are inserted into the resulting string). * * @param runtimeParams runtime parameters for #import/#export values, * template values, and code generation parameters */ export declare function linkWgslModule(srcModule: TextModule, registry: ParsedRegistry, extParams?: Record): string; /** Find references to elements like structs and fns to import into the linked result. * (note that local functions are not listed unless they are referenced) */ export declare function findReferences(srcModule: TextModule, registry: ParsedRegistry): FoundRef[]; /** * unique id for a future root level element in the form: * moduleName.elemName(impParam1, impParam2, ...) * We'll eventually give each unique element a unique fn, struct or variable name * in the linked source. */ export declare function refFullName(ref: FoundRef): string;