export declare const SYNC_ATOM = "sync"; export declare const SYNC_MSG_REL8N_NAME = "syncmsg"; /** * payload addrs should be domain-only, i.e., we are not including the sync * saga ibgib, or its message stone. */ export declare const SYNC_SAGA_PAYLOAD_ADDRS_DOMAIN = "@payloadAddrsDomain"; export declare const SYNC_STAGE_INIT = "init"; export declare const SYNC_STAGE_ACK = "ack"; export declare const SYNC_STAGE_DELTA = "delta"; export declare const SYNC_STAGE_COMMIT = "commit"; export type SyncStage = typeof SYNC_STAGE_INIT | typeof SYNC_STAGE_ACK | typeof SYNC_STAGE_DELTA | typeof SYNC_STAGE_COMMIT; export declare const SyncStage: { /** * first frame */ init: "init"; /** * 2nd frame, response to init */ ack: "ack"; /** * exchanging/negotiating ibgibs */ delta: "delta"; /** * final phases of sync */ commit: "commit"; }; export declare const SYNC_STAGE_VALID_VALUES: ("ack" | "commit" | "delta" | "init")[]; export declare const SYNC_CONFLICT_STRATEGY_ABORT = "abort"; export declare const SYNC_CONFLICT_STRATEGY_OPTIMISTIC_GRAFT_LCS = "optimistic-graft-longest-common-subsequence"; export type SyncConflictStrategy = typeof SYNC_CONFLICT_STRATEGY_ABORT | typeof SYNC_CONFLICT_STRATEGY_OPTIMISTIC_GRAFT_LCS; /** * @see {@link SyncOptions.conflictStrategy} */ export declare const SyncConflictStrategy: { /** * As soon as a conflict is detected, the sync aborts and fails completely. */ abort: "abort"; /** * * Optimistic: do something even if its wrong * * LCS: Longest common subsequence algorithm used when encountering * data.text differences. * * ## notes * * If we are making changes to text, then we will try to merge that text * instead of last-one-wins. */ optimisticWithLCS: "optimistic-graft-longest-common-subsequence"; }; export declare const SYNC_CONFLICT_STRATEGY_VALID_VALUES: ("abort" | "optimistic-graft-longest-common-subsequence")[]; export declare function isValidSyncConflictStrategy(strategy: string): strategy is SyncConflictStrategy; //# sourceMappingURL=sync-constants.d.mts.map