import DBLiveClient from ".."; import { Disposable } from "../common/interfaces/disposable"; import { DBLivePutResult } from "../types/putresult"; import { DBLiveSocketErrorResult, DBLiveSocketGetRedirectResult, DBLiveSocketGetResult, DBLiveSocketLockOptions, DBLiveSocketLockResult, DBLiveSocketMetaResult, DBLiveSocketPutOptions, DBLiveSocketUnlockResult } from "./socket.types"; export declare class DBLiveSocketManager implements Disposable { private readonly logger; private readonly sockets; constructor(socketDomains: string[], appKey: string, client: DBLiveClient, cookie: string | undefined); get isConnected(): boolean; dispose(): void; get(key: string): Promise; lock(key: string, options?: DBLiveSocketLockOptions): Promise; meta(key: string): Promise; put(key: string, value: string, options: DBLiveSocketPutOptions): Promise; stopWatching(key: string): Promise; unlock(key: string, lockId: string): Promise; watch(key: string): Promise; private sendToSockets; }