import type { AgencyProgram } from "../types.js";
import type { ScopeInfo } from "../typeChecker/types.js";
/**
 * Find the AST definition node (function or graphNode) for a named scope.
 */
export declare function findDefForScope(name: string, program: AgencyProgram): import("../types.js").GraphNodeDefinition | import("../types.js").FunctionDefinition | null;
/**
 * Find the innermost scope that contains the given character offset.
 * Falls back to the top-level scope if no function/node scope matches.
 */
export declare function findContainingScope(offset: number, scopes: ScopeInfo[], program: AgencyProgram): ScopeInfo | undefined;
