import { MemoryProvider, AgentRun, SearchResult, MemoryStats, StoreRunParams, SearchMemoryParams } from './types.js';
interface AlertCallback {
    (message: string, error?: Error): void;
}
export declare function registerMemoryAlertCallback(callback: AlertCallback): void;
export declare function unregisterMemoryAlertCallback(callback: AlertCallback): void;
export declare class PostgresMemoryProvider implements MemoryProvider {
    private pools;
    private initializedDbs;
    private maintenancePool;
    private coreDbName;
    private dbVectorSupport;
    private dbCreationInProgress;
    private poolCleanupHandlers;
    constructor();
    private sanitizeIdentifier;
    private getDbName;
    private getPoolFor;
    private ensureDatabaseExists;
    private initializeDb;
    storeRun(params: StoreRunParams): Promise<string>;
    storeKnowledge(params: {
        text: string;
        source?: string;
        agentName?: string;
    }): Promise<string>;
    searchMemory(params: SearchMemoryParams): Promise<SearchResult[]>;
    getRecentRuns(params: {
        runner?: string;
        limit?: number;
        agentName?: string;
    }): Promise<AgentRun[]>;
    getStats(agentName?: string): Promise<MemoryStats>;
}
export {};
//# sourceMappingURL=PostgresMemoryProvider.d.ts.map