import { RxReplicationWriteToMasterRow, WithDeletedAndAttachments } from '../../index.ts'; import type { GoogleDriveOptionsWithDefaults } from './google-drive-types'; import { DriveStructure } from './init.ts'; export declare const WAL_FILE_NAME = "rxdb-wal.json"; export declare function fetchConflicts(googleDriveOptions: GoogleDriveOptionsWithDefaults, init: DriveStructure, primaryPath: keyof WithDeletedAndAttachments, writeRows: RxReplicationWriteToMasterRow[]): Promise<{ conflicts: WithDeletedAndAttachments[]; nonConflicts: RxReplicationWriteToMasterRow[]; }>; export declare function writeToWal(googleDriveOptions: GoogleDriveOptionsWithDefaults, init: DriveStructure, writeRows?: RxReplicationWriteToMasterRow[]): Promise; export declare function readWalContent(googleDriveOptions: GoogleDriveOptionsWithDefaults, 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(googleDriveOptions: GoogleDriveOptionsWithDefaults, init: DriveStructure, primaryPath: keyof RxDocType): Promise; export declare function handleUpstreamBatch(googleDriveOptions: GoogleDriveOptionsWithDefaults, init: DriveStructure, primaryPath: keyof WithDeletedAndAttachments, writeRows: RxReplicationWriteToMasterRow[]): Promise[]>;