export interface NativeRevisionedDocument { revision: number; } export interface NativeRevisionCasOptions { expectedRevision: number; next: T; read: () => Promise; write: (next: T) => Promise; equals?: (left: T, right: T) => boolean; conflict: (actualRevision: number) => Error; } /** * Shared revision/CAS protocol for Native runtime documents. * * The caller owns the mutation or transaction lock around this operation. The * idempotent branch lets journal recovery safely replay a write that reached * disk before the process stopped. */ export declare function compareAndSwapNativeRevision(options: NativeRevisionCasOptions): Promise; //# sourceMappingURL=native-revision.d.ts.map