import type { WebsocketServerState } from 'nxdb-old/src/plugins/replication-websocket'; import type { ServerOptions, ClientOptions } from 'nxdb-old/node_modules/@types/ws'; import type { RxDatabase, RxStorage, RxStorageStatics } from 'nxdb-old/src/types'; import type { CustomRequestHandler, RxStorageRemoteExposeType, RxStorageRemoteSettings } from 'nxdb-old/src/plugins/storage-remote/storage-remote-types'; import { RxStorageRemote } from 'nxdb-old/src/plugins/storage-remote'; export type RxStorageRemoteWebsocketServerOptions = ServerOptions & { storage?: RxStorage; database?: RxDatabase; customRequestHandler?: CustomRequestHandler; }; export type RxStorageRemoteWebsocketServerState = { serverState: WebsocketServerState; exposeState: RxStorageRemoteExposeType; }; export type RxStorageRemoteWebsocketClientOptions = ClientOptions & { statics: RxStorageStatics; url: string; mode: RxStorageRemoteSettings['mode']; }; export type RxStorageRemoteWebsocketClient = RxStorageRemote;