import { type Sealer } from './crypto.js';
import type { PoppyConnectionStore } from './store.js';
/** One sealed column: how its values stand against the keys, and what a reseal did to them. */
export interface SealedColumnReport {
    column: string;
    scanned: number;
    /** Open with the key that seals now. */
    active: number;
    /** Open only with an older key (or are not in the KMS envelope now configured). */
    retired: number;
    /** In the format agent wrote before the crypto kit. */
    legacy: number;
    /** Nothing configured opens them (key gone, damaged). */
    unreadable: number;
    /** Re-sealed with the key that seals now (with `dryRun`: would be). */
    resealed: number;
    /** Could not be re-sealed (did not open). */
    failed: number;
    /** Changed by the app between the read and the write; left alone (run again). */
    skipped: number;
}
export interface SealedReport {
    /** False when the store can't list its sealed values (a custom store without `listSealed`). */
    walkable: boolean;
    dryRun: boolean;
    columns: SealedColumnReport[];
}
/**
 * Walk every sealed value of the store. `reseal: false` only classifies them; `reseal: true`
 * re-seals the `retired` and `legacy` ones (`all`: every value that opens — for keys the kit can't
 * tell apart, like the app's own `config/encryption.ts`). `dryRun` writes nothing.
 */
export declare function walkSealed(store: PoppyConnectionStore, sealer: Sealer, options: {
    reseal: boolean;
    dryRun?: boolean;
    all?: boolean;
}): Promise<SealedReport>;
/** The `agent.crypto` doctor result for a {@link SealedReport}. */
export declare function sealedReportVerdict(report: SealedReport): {
    status: 'ok' | 'warn' | 'error' | 'skip';
    message: string;
    fix?: string;
    docs: string;
};
//# sourceMappingURL=reseal.d.ts.map