import type { ReplicationOptions, ReplicationPullOptions, ReplicationPushOptions, RxStorageDefaultCheckpoint } from 'rxdb/plugins/core'; export type ServerSyncPullOptions = Omit, 'handler' | 'stream$'> & {}; export type ServerSyncPushOptions = Omit, 'handler'> & {}; export type ServerSyncOptions = Omit, 'pull' | 'push'> & { url: string; headers?: { [k: string]: string; }; pull?: ServerSyncPullOptions; push?: ServerSyncPushOptions; /** * If the EventSource API is not available * on the runtime, pass an own implementation here. * Mostly used with the "eventsource" npm package on Node.js. */ eventSource?: typeof EventSource | any; }; export type RxServerCheckpoint = { id: string; lwt: number; };