export interface FunctionRecord { id: string; filePath: string; module: string; name: string; kind: "function" | "method" | "class" | "interface" | "struct" | "enum" | "record"; language: string; visibility: "public" | "private" | "protected"; isAsync: boolean; signature: string; lineStart: number; lineEnd: number; decorators?: string[]; docstring: ParsedDocstring | null; classInfo?: { inherits: string[]; implements: string[]; state: string[]; pattern: string[]; methods: string[]; }; typeRelationships?: { implements: string[]; extends: string[]; usesTypes: string[]; }; paramTypes?: Array<{ name: string; type: string; }>; structuralHints?: StructuralHints; fileHash: string; lastIndexedAt: number; } export interface StructuralHints { isConstructor?: boolean; isAbstract?: boolean; propertyAccess?: boolean; isTest?: boolean; } export interface ParsedDocstring { raw: string; summary: string; body: string; deps: string[]; sideEffects: string[]; tags: string[]; complexity: string | null; inherits?: string[]; state?: string[]; pattern?: string[]; } export interface VectorRow { id: string; vector: Float32Array; filePath: string; module: string; name: string; signature: string; summary: string; tags: string; sideEffects: string; chunkText: string; } export interface CallGraphEntry { calls: Array<{ target: string; resolvedFile: string | null; resolvedId: string | null; line: number; }>; calledBy: Array<{ caller: string; callerName: string; file: string; line: number; }>; } export type CallGraph = Map; export interface TypeNode { name: string; kind: "interface" | "class" | "type_alias" | "trait" | "struct" | "protocol" | "record"; filePath: string; lineStart: number; lineEnd: number; implementors: string[]; extenders: string[]; usedBy: string[]; members: Record; } export type TypeRelationGraph = Map; export interface SearchResult { id: string; name: string; filePath: string; module: string; signature: string; summary: string; tags: string[]; score: number; } export interface RankedResult { id: string; row: VectorRow; score: number; distance?: number; } export interface SearchFilter { scope?: string; tags?: string[]; sideEffects?: string[]; } export type ImportMap = Map; export interface RawFunctionInfo { name: string; kind: "function" | "method" | "class" | "interface" | "struct" | "enum" | "record"; signature: string; lineStart: number; lineEnd: number; visibility: "public" | "private" | "protected"; isAsync: boolean; decorators?: string[]; docstring?: string; classInfo?: { inherits: string[]; implements?: string[]; methods: string[]; }; paramTypes?: Array<{ name: string; type: string; }>; structuralHints?: StructuralHints; } export interface RawCallInfo { name: string; objectName?: string; line: number; } export interface RawImportInfo { importedName: string; modulePath: string; isDefault: boolean; } export interface RawTypeRelationship { className: string; kind: "class" | "interface" | "type_alias" | "trait" | "struct" | "record"; implements: string[]; extends: string[]; usesTypes: string[]; members?: Array<{ name: string; type: string; }>; filePath: string; lineStart: number; lineEnd: number; } export interface DetectedWorkspace { path: string; manifests: string[]; } export declare class EmbedderError extends Error { constructor(message: string); } export declare enum ErrorCode { OLLAMA_UNAVAILABLE = "OLLAMA_UNAVAILABLE", MODEL_NOT_FOUND = "MODEL_NOT_FOUND", INDEX_EMPTY = "INDEX_EMPTY", MODULE_NOT_FOUND = "MODULE_NOT_FOUND", FUNCTION_NOT_FOUND = "FUNCTION_NOT_FOUND", AMBIGUOUS_FUNCTION = "AMBIGUOUS_FUNCTION", PARSE_ERROR = "PARSE_ERROR", CONFIG_ERROR = "CONFIG_ERROR", INDEX_CORRUPT = "INDEX_CORRUPT", EMBEDDING_DIMENSION_MISMATCH = "EMBEDDING_DIMENSION_MISMATCH", FTS_INDEX_FAILED = "FTS_INDEX_FAILED", WORKSPACE_REQUIRED = "WORKSPACE_REQUIRED", WORKSPACE_NOT_FOUND = "WORKSPACE_NOT_FOUND" } //# sourceMappingURL=index.d.ts.map