import { ConnectInfo, ErrorResponse } from './constants'; export interface ConnectionManagerInterface { getConnectInfo(): ConnectInfo; connect(fromRestore: boolean): void; restoreConnect(topic: string): void; addListener(event: any, success: Function, fail: Function): void; send(msg: string): void; sendACK(msgId: string, success: boolean, reason: ErrorResponse | undefined): void; cleanCache(): void; getCurrentConnectionReady(): boolean; } export interface WalletConnectionManagerInterface { connect(): void; getSessionPublicKey(topicId: string): string | undefined; getCurrentCachedTopicIdList(): Array; appendTopic(topic: string, sessionPublicKey: string | undefined, cid?: string | undefined): Promise; confirmAppendingTopics(): void; send(topic: string, msg: string, needPublicKey: boolean, ttl: number, useRaw: boolean): void; sendACK(msgId: string, success: boolean, reason: ErrorResponse | undefined): void; sendUnsubscribe(topic: string): void; cleanCache(): void; }