import type { SyntaxNode } from 'tree-sitter'; export type DefinitionKind = 'function' | 'class' | 'variable' | 'const' | 'type' | 'interface' | 'enum' | 'method' | 'module'; export interface Definition { name: string; kind: DefinitionKind; isExported: boolean; isDefault: boolean; position: { row: number; column: number; }; endPosition: { row: number; column: number; }; /** Syntactic end of the declaration (before any EOF extension). Used for relationship queries. Defaults to endPosition. */ declarationEndPosition?: { row: number; column: number; }; extends?: string; implements?: string[]; extendsAll?: string[]; } /** * Extract all top-level definitions from the AST */ export declare function extractDefinitions(rootNode: SyntaxNode): Definition[]; //# sourceMappingURL=definition-extractor.d.ts.map