import { RxCollection, ReplicationPullOptions, ReplicationPushOptions, ById } from 'rxdb/plugins/core'; import { RxReplicationState } from 'rxdb/plugins/replication'; import { Subject } from 'rxjs'; import type { RxServerCheckpoint, ServerSyncOptions } from './types.ts'; export * from './types.ts'; export declare class RxServerReplicationState extends RxReplicationState { readonly replicationIdentifier: string; readonly collection: RxCollection; readonly pull?: ReplicationPullOptions | undefined; readonly push?: ReplicationPushOptions | undefined; readonly live: boolean; retryTime: number; autoStart: boolean; headers: ById; readonly outdatedClient$: Subject; readonly unauthorized$: Subject; readonly forbidden$: Subject; constructor(replicationIdentifier: string, collection: RxCollection, pull?: ReplicationPullOptions | undefined, push?: ReplicationPushOptions | undefined, live?: boolean, retryTime?: number, autoStart?: boolean, headers?: ById); setHeaders(headers: ById): void; } export declare function replicateServer(options: ServerSyncOptions): RxServerReplicationState;