import type { MemoryPage, MemoryRoot, QueryOptions, QueryResult } from "./types.js";
export type QueryContext = {
    prompt: string;
    selectedPages: MemoryPage[];
    tokensUsed: number;
    truncated: boolean;
};
export declare function queryMemory(root: MemoryRoot, options: QueryOptions): Promise<QueryResult>;
export declare function selectQueryContext(root: MemoryRoot, question: string, budget: number): Promise<QueryContext>;
export declare function rankPagesForQuery(pages: MemoryPage[], question: string): MemoryPage[];
