import type { Node } from 'web-tree-sitter'; export declare function findUnterminatedBacktick(command: string): string | null; /** * Locate a top-level structural syntax error in a parsed AST. * * Tree-sitter often recovers from minor anomalies (e.g. `for x in;`) by * producing a valid statement with an internal ERROR token. Bash accepts * those, so we only flag errors that surface as direct children of * `program` AND contain a bash keyword, a bracket / quote, a statement * separator, or a recovered named subtree (`isStructuralError`). A case * terminator outside a case item is flagged even when the tree carries no * ERROR at all, because the grammar accepts `;;` as a plain separator. * * Returns the offending region's text, or `null` if the AST is clean. */ export declare function findSyntaxError(node: Node): string | null; //# sourceMappingURL=syntax.d.ts.map