/** Effective backend scope for a plain per-PR/MR key. IDENTICAL to kvMemory scopeFor. */
export function scopeForReviewMemory(key: any): string;
/**
 * Store a review record under a plain per-PR/MR key. Serializes via
 * serializeReviewRecord (deterministic, byte-capped 200KB) and POSTs
 * { op:'store', scope, content }.
 *
 * BEST-EFFORT: never throws. { ok:true } on success; { ok:false, reason:'no-token' }
 * with no backend credential (local dev / self-host); { ok:false, reason } otherwise.
 * The caller must treat a false result as a no-op — memory NEVER blocks a run.
 */
export function storeReviewRecord(key: any, record: any): Promise<{
    ok: boolean;
    reason?: undefined;
} | {
    ok: boolean;
    reason: any;
}>;
/**
 * Recall the review record stored under a plain per-PR/MR key. POSTs
 * { op:'recall', scope } and hands the returned `content` to the tolerant
 * parseReviewMemory (which never throws over any input).
 *
 * BEST-EFFORT: never throws. Returns parseReviewMemory's result
 * ({ kind:'empty' | 'record' | 'legacy', ... }); { kind:'empty' } on missing
 * token or ANY failure, so the caller degrades to "no prior memory".
 */
export function recallReviewRecord(key: any): Promise<{
    kind: string;
    record?: undefined;
    future?: undefined;
    legacyNote?: undefined;
} | {
    kind: string;
    record: any;
    future: boolean;
    legacyNote?: undefined;
} | {
    kind: string;
    legacyNote: string;
    record?: undefined;
    future?: undefined;
}>;
