export interface MirrorMeta {
    repoKey: string;
    rootPath: string;
    journalPath: string;
    sourceOpsPath: string;
    lineCount: number;
    lastHash?: string;
    updatedAt: string;
}
/** Mirror one appended JSONL line (integration journal only). */
export declare function mirrorOpLine(opsPath: string, line: string, opHash?: string): void;
/** Best snapshot or journal for recovery. */
export declare function findMirrorForOpsPath(opsPath: string): {
    path: string;
    lineCount: number;
    repoKey: string;
} | null;
export declare function restoreOpsFromMirror(opsPath: string): {
    restored: number;
    from: string;
} | null;
export declare function backfillMirrorIfBehind(opsPath: string): number;
export declare function listMirrors(): MirrorMeta[];
//# sourceMappingURL=oplog-mirror.d.ts.map