import { RxReplicationWriteToMasterRow, WithDeletedAndAttachments } from '../../index.ts'; import type { OneDriveState } from './microsoft-onedrive-types.ts'; import { DriveStructure } from './init.ts'; export declare const WAL_FILE_NAME = "rxdb-wal.json"; export declare const DRIVE_MAX_BULK_SIZE = 250; export declare function fetchConflicts(oneDriveState: OneDriveState, init: DriveStructure, primaryPath: keyof WithDeletedAndAttachments, writeRows: RxReplicationWriteToMasterRow[]): Promise<{ conflicts: WithDeletedAndAttachments[]; nonConflicts: RxReplicationWriteToMasterRow[]; }>; export declare function writeToWal(oneDriveState: OneDriveState, init: DriveStructure, writeRows?: RxReplicationWriteToMasterRow[]): Promise; export declare function readWalContent(oneDriveState: OneDriveState, init: DriveStructure): Promise<{ etag: string; rows: RxReplicationWriteToMasterRow[] | undefined; }>; /** * Here we read the WAL file content * and sort the content into the actual * document files. * Notice that when the JavaScript process * exists at any point here, we need to have * a recoverable state on the next run. So this * must be idempotent. */ export declare function processWalFile(oneDriveState: OneDriveState, init: DriveStructure, primaryPath: keyof RxDocType): Promise; export declare function handleUpstreamBatch(oneDriveState: OneDriveState, init: DriveStructure, primaryPath: keyof WithDeletedAndAttachments, writeRows: RxReplicationWriteToMasterRow[]): Promise[]>;