import type { MemoryEvent, MemoryEventType, MemorySearchRequest, MemorySearchResult } from "./memory-types.js";
export interface MemoryRetrievalRequest {
    query: string;
    projectId?: string;
    sessionId?: string;
    types?: MemoryEventType[];
    filePaths?: string[];
    tags?: string[];
    limit: number;
    maxCapsuleBytes: number;
}
export interface MemoryCapsule {
    id: string;
    type: MemoryEventType;
    summary: string;
    citation: string;
    createdAt: string;
    score: number;
    reason: string;
    filePaths?: string[];
    tags?: string[];
}
export interface ParsedMemoryCitation {
    id: string;
    type?: MemoryEventType;
    createdAt?: string;
    filePaths: string[];
}
export interface MemoryWhyResult {
    citation: string;
    summary: string;
    reason: string;
    score: number;
    filePaths: string[];
    tags: string[];
}
export declare function createMemoryRetrievalRequest(options: {
    query: string;
    projectId?: string;
    sessionId?: string;
    types?: MemoryEventType[];
    filePaths?: string[];
    tags?: string[];
    limit?: number;
    maxCapsuleBytes?: number;
}): MemoryRetrievalRequest;
export declare function toMemorySearchRequest(request: MemoryRetrievalRequest): MemorySearchRequest;
export declare function rankMemorySearchResults(results: readonly MemorySearchResult[], request: MemoryRetrievalRequest): MemorySearchResult[];
export declare function createMemoryCitation(event: MemoryEvent): string;
export declare function parseMemoryCitation(citation: string): ParsedMemoryCitation | undefined;
export declare function createMemoryCapsules(results: MemorySearchResult[], request: MemoryRetrievalRequest): MemoryCapsule[];
export declare function getMemoryWhy(capsules: readonly MemoryCapsule[], selector?: string): MemoryWhyResult[];
export declare function renderMemoryWhy(results: readonly MemoryWhyResult[]): string;
export declare function renderMemoryCapsules(capsules: readonly MemoryCapsule[]): string | undefined;
//# sourceMappingURL=memory-retrieval.d.ts.map