import type { MemoryDoctorReport, MemoryLink, MemoryRecord, MemoryReviewState, MemoryScope, MemorySearchFilter } from './memory-store.js';
export declare function createSchema(db: {
    run(sql: string): void;
    exec(sql: string, params?: (string | number)[]): Array<{
        columns: string[];
        values: unknown[][];
    }>;
}): void;
export declare function ensureColumn(db: {
    run(sql: string): void;
    exec(sql: string, params?: (string | number)[]): Array<{
        columns: string[];
        values: unknown[][];
    }>;
}, table: string, columnSql: string, columnName: string): void;
export declare function rowToRecord(columns: string[], values: unknown[]): MemoryRecord;
export declare function normalizeReviewState(value: unknown): MemoryReviewState;
export declare function normalizeScope(value: unknown): MemoryScope;
export declare function clampConfidence(value: unknown): number;
export declare function isReviewFlagged(record: MemoryRecord): boolean;
export declare function isReviewCandidate(record: MemoryRecord): boolean;
export declare function reviewQueueScore(record: MemoryRecord): number;
export declare function scoreRecord(record: MemoryRecord, filter: MemorySearchFilter): number;
export declare function recordMatchesPostSqlFilter(record: MemoryRecord, filter: MemorySearchFilter): boolean;
export declare function safeParseJson<T>(raw: unknown, fallback: T): T;
export declare function memoryLink(fromId: string, toId: string, relation: string, createdAt: number): MemoryLink;
export declare function memoryDoctorReport(vector: MemoryDoctorReport['vector'], embeddings: MemoryDoctorReport['embeddings'], checkedAt: number): MemoryDoctorReport;
//# sourceMappingURL=memory-store-helpers.d.ts.map