import { RemoteMessageChannel, RxStorageRemoteSettings } from './storage-remote-types.ts'; export type RemoteMessageChannelCacheItem = { identifier: string; cacheKey: string; messageChannel: Promise; refCount: number; keepAlive: boolean; }; export declare const MESSAGE_CHANNEL_CACHE_BY_IDENTIFIER: Map>; export declare const CACHE_ITEM_BY_MESSAGE_CHANNEL: WeakMap; export declare const OPEN_REMOTE_MESSAGE_CHANNELS: Set; export declare function getMessageChannel(settings: RxStorageRemoteSettings, cacheKeys: string[], keepAlive?: boolean): Promise; export declare function closeMessageChannel(messageChannel: RemoteMessageChannel): Promise;