/**
 * Two-phase semantic prefetch — kicks off a background search on turn_end,
 * consumes the result on before_agent_start with a timeout.
 */
import type { Mem0Provider } from './provider.js';
export declare class Prefetch {
    private readonly provider;
    private readonly userId;
    private readonly topK;
    private pending;
    constructor(provider: Mem0Provider, userId: string, opts: {
        topK: number;
    });
    /** Phase 1: kick off a background search (called on turn_end with user message). */
    queue(query: string): void;
    /** Phase 2: consume the result with a timeout (called on before_agent_start). */
    consume(timeoutMs?: number): Promise<string>;
}
//# sourceMappingURL=prefetch.d.ts.map