import { WERR_INVALID_PARAMETER } from '../../sdk/WERR_errors'; import { WalletServices } from '../../sdk/WalletServices.interfaces'; import { TableProvenTx } from '../schema/tables/TableProvenTx'; export interface SyncProofValidationStorage { getServices: () => WalletServices; } /** Identifies a structurally valid proof which needs current-chain reconciliation. */ export declare class StaleSyncProofError extends WERR_INVALID_PARAMETER { constructor(); } /** Mark a fully validated reconciliation without changing the source cursor timestamp. */ export declare function markSyncProofReconciled(candidate: TableProvenTx): void; /** A local correction must be discoverable by subsequent incremental readers. */ export declare function syncProofUpdatedAt(candidate: TableProvenTx, existing?: Date): Date; /** Normalize text-key identifiers before lookup or persistence. */ export declare function canonicalizeSyncProofIdentifiers(candidate: TableProvenTx): void; /** Compare proof authority fields, excluding local IDs and timestamps. */ export declare function sameSyncProof(a: TableProvenTx, b: TableProvenTx): boolean; /** Record that preflight found no row which this candidate may replace. */ export declare function markSyncProofInsertOnly(candidate: TableProvenTx): void; /** * Enforce the pre-transaction proof decision again at the entity merge point. * This closes the race where another process inserts the txid after preflight. */ export declare function assertSyncProofReplacementAuthorized(candidate: TableProvenTx): void; /** * Validate proof authority before an RPC proof is admitted or an in-process * backup/conflict proof replaces an existing global row. Network-backed checks * run before the storage merge transaction is opened. */ export declare function validateSyncProof(storage: SyncProofValidationStorage, candidate: TableProvenTx): Promise; //# sourceMappingURL=validateSyncProof.d.ts.map