import { type BaseChunk } from './chunk-utils.js'; /** * Chunk from tree-sitter AST parsing */ export type TreeSitterChunk = BaseChunk; /** * Tree-sitter based AST chunker for multiple languages * Provides language-agnostic code parsing beyond TypeScript/JavaScript */ export declare class TreeSitterChunker { private static parser; private static loadedLanguages; private static initPromise; private static wasmBasePath; /** * Initialize the tree-sitter parser (call once before using) */ static initialize(): Promise; /** * Find the path to the tree-sitter WASM files */ private static findWasmBasePath; /** * Get the language configuration for a file extension */ private static getLanguageConfig; /** * Get the language name for a file extension */ static getLanguageName(filepath: string): string | null; /** * Check if a file can be parsed with tree-sitter */ static canParse(filepath: string): boolean; /** * Get the list of supported file extensions */ static getSupportedExtensions(): string[]; /** * Load a language if not already loaded */ private static loadLanguage; /** * Parse a file and return AST-aware chunks */ chunkFile(filepath: string): Promise; /** * Process a node and its children to extract chunks */ private processNode; /** * Process a class node that's too large to fit in one chunk */ private processClassNode; /** * Get the name of a node (function name, class name, etc.) */ private getNodeName; /** * Split a large chunk into smaller pieces */ private splitLargeChunk; } //# sourceMappingURL=tree-sitter-chunker.d.ts.map