import { CoreMessage } from "ai";
import { CoreBlock, CoreMemoryEntry, MemoryState } from "../types";
export interface StorageProvider {
    getMemoryState(memoryKey: string): Promise<MemoryState | undefined>;
    initializeMemoryState(memoryKey: string, threadId: string, previousState?: MemoryState): Promise<MemoryState>;
    updateChatHistory({ memoryKey, threadId, messages }: {
        memoryKey: string;
        threadId: string;
        messages: CoreMessage[];
    }): Promise<void>;
    addChatHistoryMessage({ memoryKey, message, threadId }: {
        memoryKey: string;
        message: CoreMessage;
        threadId: string;
    }): Promise<void>;
    getCoreMemory(memoryKey: string): Promise<Record<CoreBlock, CoreMemoryEntry> | null>;
    updateCoreMemory(key: string, memory: Record<CoreBlock, CoreMemoryEntry> | null): Promise<void>;
    deleteMemoryState(memoryKey: string): Promise<void>;
    flush(): Promise<void>;
    export(memoryKey: string): Promise<MemoryState>;
    getChatHistoryKey(memoryKey: string, threadId?: string): string;
    getCoreMemoryKey(memoryKey: string): string;
}
//# sourceMappingURL=storage-provider.d.ts.map