import { PluginConfig, MemoryFile } from './types.js';
import './index-1qIcnbG1.js';

interface ActiveMemoryMetadata {
    type?: "fact" | "preference";
    topic?: string;
    updatedAt?: string;
    sourceUri?: string;
}
interface ActiveMemorySearchResult {
    id: string;
    score: number;
    text: string;
    metadata?: ActiveMemoryMetadata;
}
interface ActiveMemorySearchOutput {
    results: ActiveMemorySearchResult[];
    truncated: boolean;
}
interface ActiveMemoryGetOutput {
    id?: string;
    text?: string;
    metadata?: ActiveMemoryMetadata;
    error?: "not_found";
}
interface ActiveMemoryRecallParams {
    query: string;
    limit?: number;
    sessionKey: string;
    filters?: Record<string, unknown>;
    snippetMaxChars?: number;
}
type ActiveMemorySearchCandidate = {
    id?: string;
    score?: number;
    snippet?: string;
    text?: string;
    path?: string;
    metadata?: Record<string, unknown>;
};
declare function recallForActiveMemory(orchestrator: {
    config?: PluginConfig;
    resolvePrincipal?: (sessionKey?: string) => string;
    resolveSelfNamespace?: (sessionKey?: string) => string;
    searchAcrossNamespaces: (params: {
        query: string;
        maxResults?: number;
        namespaces?: string[];
        mode?: string;
    }) => Promise<ActiveMemorySearchCandidate[]>;
}, params: ActiveMemoryRecallParams): Promise<ActiveMemorySearchOutput>;
declare function getMemoryForActiveMemory(orchestrator: {
    config?: PluginConfig;
    resolvePrincipal?: (sessionKey?: string) => string;
    resolveSelfNamespace?: (sessionKey?: string) => string;
    getStorageForNamespace?: (namespace: string) => Promise<{
        getMemoryById?: (id: string) => Promise<MemoryFile | null>;
    }>;
    storage?: {
        getMemoryById?: (id: string) => Promise<MemoryFile | null>;
    };
}, id: string, options?: {
    namespace?: string;
    sessionKey?: string;
}): Promise<ActiveMemoryGetOutput>;

export { type ActiveMemoryGetOutput, type ActiveMemoryMetadata, type ActiveMemoryRecallParams, type ActiveMemorySearchOutput, type ActiveMemorySearchResult, getMemoryForActiveMemory, recallForActiveMemory };
