import type { VectorRecord, CodebaseStats } from '../worker/surreal-adapter'; /** * Embedding service interface. * Implement this to swap in a test double without jest.mock. */ export interface IEmbeddingService { embedBatch(texts: string[]): Promise; } /** * Code adapter interface covering all methods CodebaseIndexer needs. * Implement this to inject a fake adapter in tests or alternative backends. */ export interface ICodeAdapter { connect(options?: { migrateOnConnect?: boolean; }): Promise; disconnect(): Promise; isConnected(): boolean; migrate(): Promise; insertCodeChunks(records: VectorRecord[], extraMetadata: Record): Promise; getContentHash(codebaseId: string, filePath: string): Promise; deleteByFilePath(codebaseId: string, filePath: string): Promise; getIndexedFilePaths(codebaseId: string): Promise; purgeCodebase(codebaseId: string): Promise; getStats(codebaseId: string): Promise; } //# sourceMappingURL=interfaces.d.ts.map