import { ConnectInfo, ErrorResponse } from './constants'; import { ConnectionManagerInterface } from './connectionManagerInterface'; import { EventEmitter } from "eventemitter3"; import { Storage } from './storage'; export declare class ConnectionManager implements ConnectionManagerInterface { private connector; private crypto; private connectedWalletPK; private connectStorage; tonsdkConnectStorage: Storage; private packageId; private jwtKeyPair; events: EventEmitter; currentTopic: string; private timeLog?; private splitManager; private connectorEnable; constructor(appname?: string | undefined); private refreshPackageId; private saveCryptoKeyPair; private getCachedCryptoKeyPair; private saveJWTKeyPair; private getCachedJWTKeyPair; private isWalletPKReady; private makeJWT; private parsePackage; restoreConnect(topic: string): Promise; getConnectInfo(): ConnectInfo; connect(fromRestore?: boolean): Promise; sendSubscribe(topic: string): Promise; private sendDisconnect; private sendRecvDisconnect; disconnect(fromRestore?: boolean): Promise; updateProtocolVersion(topic: string, protocolVersion: number): void; addListener(event: any, success: Function, fail: Function): void; sendRaw(msg: string): Promise; private sendEncryptedMsg; send(msg: string, ttl?: number): Promise; sendACK(msgId: string, success: boolean, reason?: ErrorResponse | undefined): Promise; sendReceive(msgId: string, messageId: string, topic: string): Promise; sendFetchAndConsumeMessages(msgId: string, topic: string): Promise; cleanCache(): void; saveSessionContent(key: string, data: unknown): void; getSessionContent(key: string): any; getCurrentConnectionReady(): boolean; getCryptoKeyEnable(): boolean; /** * session expire check * **/ private checkExpire; private updateExpireLimit; private activateDisconnect; }