import { HubConnection } from '@aspnet/signalr';
import { ModuleConfigService } from './module-config.service';
import { AuthenService } from './authen.service';
export declare class SignalRService {
    private _moduleConfigService;
    private _authenService;
    private _moduleConfig;
    private _hubConnection;
    connections: any[];
    hubs: {};
    delayStarters: any[];
    connected: boolean;
    maxRetryTimes: number;
    viewCodeSubs: {
        viewCode: string;
        callback: (data: any) => void;
    }[];
    hubsSetting: any;
    constructor(_moduleConfigService: ModuleConfigService, _authenService: AuthenService);
    init(): Promise<void>;
    start(topic: string, viewCode: string, callback: (data: any) => void): void;
    isHubEnabled(topic: any): any;
    stop(): void;
    subscribeViewCode(hubConnection: HubConnection, viewCode: string, callback: (data: any) => void): void;
    unSubscribeViewCode(topic: string, viewCode: string): void;
    private createConnection;
    private autoReconnect;
    private wait;
    private startConnection;
    private subscribe;
    private unSubscribe;
}
//# sourceMappingURL=signalr.service.d.ts.map