import { RxCollection, RxReplicationHandler, StringKeys } from 'rxdb/plugins/core'; import type { RxServer } from './rx-server.ts'; import type { RxServerChangeValidator, RxServerEndpoint, RxServerQueryModifier } from './types.ts'; export type RxReplicationEndpointMessageType = { id: string; method: StringKeys> | 'auth'; params: any[]; }; export declare class RxServerReplicationEndpoint implements RxServerEndpoint { readonly server: RxServer; readonly name: string; readonly collection: RxCollection; readonly serverOnlyFields: string[]; readonly cors?: string | undefined; readonly type = "replication"; readonly urlPath: string; readonly changeValidator: RxServerChangeValidator; readonly queryModifier: RxServerQueryModifier; constructor(server: RxServer, name: string, collection: RxCollection, queryModifier: RxServerQueryModifier, changeValidator: RxServerChangeValidator, serverOnlyFields: string[], cors?: string | undefined); } /** * "block" the previous version urls and send a 426 on them so that * the clients know they must update. */ export declare function blockPreviousReplicationVersionPaths(server: RxServer, path: string, currentVersion: number): void;