// Auto-generated from parser/src/node-types.json // DO NOT EDIT - This file is overwritten by scripts/gen-grammar-lib.ts /** * Base interface for all tree-sitter nodes. * This represents the common properties that all AST nodes share. */ // TreeSitterNode interface has been replaced by SyntaxNode from web-tree-sitter // See exports above for details /** * Re-export of Node from web-tree-sitter. * * Note: We chose web-tree-sitter over node-tree-sitter for the following reasons: * - Works in both Node.js and browser environments (via WebAssembly) * - Aligns with our WASM-based distribution model * - Single distribution file (no platform-specific builds) * * Known limitations: * - TypeScript definitions are incomplete compared to node-tree-sitter * - Missing some methods like descendantsOfType in the type definitions * - The actual runtime API is complete, only the types are limited * * @see https://github.com/tree-sitter/tree-sitter/issues/349 */ export type { Node } from 'web-tree-sitter';