/** * IR intrinsic scanning utilities. * * Generic recursive walkers that scan the import IR value trees for * intrinsic markers and dependency references. */ import type { TemplateIR } from "./parser.js"; /** * Check if a value tree contains an intrinsic with the given name. * Looks for `{ __intrinsic: name }` objects recursively. */ export declare function hasIntrinsicInValue(value: unknown, name: string): boolean; /** * Check if any resource in the IR uses a given intrinsic. */ export declare function irUsesIntrinsic(ir: TemplateIR, name: string): boolean; /** * Collect dependency references from a value tree. * * @param value - The value tree to scan * @param isDependency - Given an object, returns a logical ID if it represents * a dependency, or null otherwise. Each lexicon provides its own predicate. */ export declare function collectDependencies(value: unknown, isDependency: (obj: Record) => string | null): Set; //# sourceMappingURL=ir-utils.d.ts.map