/** * v1 per-language node-kind predicates for Go (ADR-0010). The generic * traversal/position helpers live in `@opensip-cli/tree-sitter`; only the * grammar-specific node `type` strings differ. Node types are from the * tree-sitter-go grammar. Go has no class or try/catch — methods are a distinct * `method_declaration` (receiver syntax) and error handling is value-based. */ import type { Node } from '@opensip-cli/tree-sitter'; /** A function or method declaration (both are callable defs). */ export declare const isFunction: (node: Node) => boolean; /** A method declaration (a func with a receiver). */ export declare const isMethod: (node: Node) => boolean; /** A `struct` type. */ export declare const isStruct: (node: Node) => boolean; /** A comment. */ export declare const isComment: (node: Node) => boolean; /** A string literal (interpreted `"..."` or raw backtick string). */ export declare const isString: (node: Node) => boolean; /** An `if` statement. */ export declare const isConditional: (node: Node) => boolean; /** A `for` statement (Go's only loop). */ export declare const isLoop: (node: Node) => boolean; //# sourceMappingURL=predicates.d.ts.map