export interface ISocketParams { url: string; close?: () => void; timeout?: 20000; onmessage?: (p: any) => void; onclose?: (p: any) => void; onerror?: (p: any) => void; onopen?: (p: any) => void; sendMessage?: (p: any) => void; send?: (p: any) => void; } export default class Socket { reconnectCount: number; socket: ISocketParams; isSucces: boolean; taskRemindInterval: any; private params; constructor(params: ISocketParams); connection: () => void; onopen: (e: any) => void; onmessage: (msg: any) => void; onerror: (e: any) => void; sendMessage: (val: any) => void; onclose: (e: any) => void; loop: () => void; clearLoopInterval: () => void; close: (text?: string) => void; } export declare function Action(service: any, method: any, mes: any): void; export declare function Message(content: any, msgType: any, receiverId: any): void;