import { RxCollection } from 'rxdb/plugins/core'; import type { RxServer } from './rx-server.ts'; import type { RxServerChangeValidator, RxServerEndpoint, RxServerQueryModifier } from './types.ts'; export declare const REST_PATHS: readonly ["query", "query/observe", "get", "set", "delete"]; export declare class RxServerRestEndpoint implements RxServerEndpoint { readonly server: RxServer; readonly name: string; readonly collection: RxCollection; readonly serverOnlyFields: string[]; readonly cors?: string | undefined; readonly type = "rest"; 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 blockPreviousReplicationVersionPathsRest(server: RxServer, path: string, currentVersion: number): void;