import type { LoadedGraph, LoadedModule } from "@telorun/analyzer"; import type { DefinitionResult } from "../types.js"; import type { AliasQualifiedValue } from "./alias-qualified-value.js"; /** Resolve a `!ref` target to the resource instance it names. * * The grammar mirrors `resolveRefSentinels`: a bare name (or `Self.name`) is a * local resource in the current module; `Alias.name` is an exported instance of * the module the import `Alias` points at, followed transitively through * re-exports and gated on each module's `exports.resources`. The alias half * navigates to the import that declares it. Returns `undefined` when the target * can't be found (a scope-local name, an instance the target does not export, * or an import that failed to load). */ export declare function resolveRefTarget(graph: LoadedGraph, currentModule: LoadedModule, ref: AliasQualifiedValue): DefinitionResult | undefined; //# sourceMappingURL=resolve-ref-target.d.ts.map