/** * Composed enclosing-scope helpers for Go (ADR-0010) — the per-language layer * over the generic `findEnclosing`/`nameOf` from `@opensip-cli/tree-sitter`. * `isMethod` is grammar-direct (Go's `method_declaration`), so it lives in * predicates.ts; this module composes the enclosing-function lookups. */ import { type Node } from '@opensip-cli/tree-sitter'; /** The nearest enclosing func/method of `node`, or `null` at file scope. */ export declare function findEnclosingFunction(node: Node): Node | null; /** The name of the nearest enclosing func/method, or `null`. */ export declare function getEnclosingFunctionName(node: Node): string | null; //# sourceMappingURL=enclosing.d.ts.map