import type { RxConflictHandlerInput, RxDocumentData, RxStorageInstanceReplicationState } from '../types/index.d.ts'; /** * Resolves a conflict error or determines that the given document states are equal. * Returns the resolved document that must be written to the fork. * Then the new document state can be pushed upstream. * If document is not in conflict, returns undefined. * If error is non-409, it throws an error. * Conflicts are only solved in the upstream, never in the downstream. */ export declare function resolveConflictError(state: RxStorageInstanceReplicationState, input: RxConflictHandlerInput, forkState: RxDocumentData): Promise | undefined>;