import type { ReadBraceScan, ReadFoldSettings } from "../types.ts"; /** Structural subset of a web-tree-sitter node: the fold rule stays pure and grammar-runtime free. */ export interface SyntaxNode { readonly id: number; readonly type: string; readonly text: string; readonly startPosition: { readonly row: number; }; readonly endPosition: { readonly row: number; }; readonly children: readonly (SyntaxNode | null)[]; readonly hasError: boolean; readonly isMissing: boolean; childForFieldName(field: string): SyntaxNode | null; } export type TreeSitterLanguage = "ts" | "tsx" | "js"; /** * Fold boundaries from a parsed syntax tree, produced under the same rules the compiler oracle * uses to annotate safe interiors: value containers only, never a line of a declaration header. */ export declare function foldRangesFromSyntax(root: SyntaxNode, settings: ReadFoldSettings): ReadBraceScan; //# sourceMappingURL=syntax.d.ts.map