/**
 * Memory Embedder Bridge - TypeScript interface to Python memory embedder
 *
 * This module provides a TypeScript bridge to the Python memory_embedder.py script,
 * which generates and searches embeddings for memory chunks using CodexLens's embedder.
 *
 * Features:
 * - Reuses CodexLens venv at ~/.codexlens/venv
 * - JSON protocol communication
 * - Three commands: embed, search, status
 * - Automatic availability checking
 */
export interface EmbedResult {
    success: boolean;
    chunks_processed: number;
    chunks_failed: number;
    elapsed_time: number;
    error?: string;
}
export interface SearchMatch {
    source_id: string;
    source_type: 'core_memory' | 'workflow' | 'cli_history';
    chunk_index: number;
    content: string;
    score: number;
    restore_command: string;
}
export interface SearchResult {
    success: boolean;
    matches: SearchMatch[];
    query?: string;
    elapsed_time?: number;
    error?: string;
}
export interface EmbeddingStatus {
    success?: boolean;
    total_chunks: number;
    embedded_chunks: number;
    pending_chunks: number;
    by_type: Record<string, {
        total: number;
        embedded: number;
        pending: number;
    }>;
    error?: string;
}
export interface EmbedOptions {
    sourceId?: string;
    batchSize?: number;
    force?: boolean;
}
export interface SearchOptions {
    topK?: number;
    minScore?: number;
    sourceType?: 'core_memory' | 'workflow' | 'cli_history';
}
/**
 * Check if embedder is available (venv and script exist)
 * @returns True if embedder is available
 */
export declare function isEmbedderAvailable(): boolean;
/**
 * Generate embeddings for memory chunks
 * @param dbPath - Path to SQLite database
 * @param options - Embedding options
 * @returns Embedding result
 */
export declare function generateEmbeddings(dbPath: string, options?: EmbedOptions): Promise<EmbedResult>;
/**
 * Search memory chunks using semantic search
 * @param dbPath - Path to SQLite database
 * @param query - Search query text
 * @param options - Search options
 * @returns Search results
 */
export declare function searchMemories(dbPath: string, query: string, options?: SearchOptions): Promise<SearchResult>;
/**
 * Get embedding status statistics
 * @param dbPath - Path to SQLite database
 * @returns Embedding status
 */
export declare function getEmbeddingStatus(dbPath: string): Promise<EmbeddingStatus>;
//# sourceMappingURL=memory-embedder-bridge.d.ts.map