import type { DatabaseSync } from "node:sqlite";
import type { MemoryId, MemoryRecord, MemoryScope } from "@oscharko-dev/keiko-contracts/memory";
import type { ListMemoriesOptions } from "./types.js";
import type { MemoryContentCipher } from "./cipher.js";
export declare function insertMemoryRow(db: DatabaseSync, record: MemoryRecord, cipher: MemoryContentCipher): void;
export declare function getMemoryRow(db: DatabaseSync, id: MemoryId, cipher: MemoryContentCipher): MemoryRecord | undefined;
export declare function updateMemoryRow(db: DatabaseSync, record: MemoryRecord, cipher: MemoryContentCipher): void;
export declare function deleteMemoryRow(db: DatabaseSync, id: MemoryId): boolean;
export declare function listMemoriesRows(db: DatabaseSync, options: ListMemoriesOptions, nowMs: number, cipher: MemoryContentCipher): readonly MemoryRecord[];
export declare function listMemoriesByScopeRows(db: DatabaseSync, scope: MemoryScope, options: ListMemoriesOptions, nowMs: number, cipher: MemoryContentCipher): readonly MemoryRecord[];
//# sourceMappingURL=memories.d.ts.map