import { StateContext } from '@ngxs/store';
import { SignalRActions } from './signalr.actions';
import { Observable } from 'rxjs';
import { SignalRService } from './signalr.service';
import { SignalRConnection } from './signalr';
import * as i0 from "@angular/core";
export declare const SIGNALR_STATE_NAME = "SignalR";
export interface SignalRStateModel {
    payloads: {
        [key: string]: SignalRConnection<unknown>;
    };
}
export declare const getInitialSignalRState: () => SignalRStateModel;
export declare class SignalRState {
    private service;
    constructor(service: SignalRService);
    onConnect$(ctx: StateContext<SignalRStateModel>, action: SignalRActions.Connect): Observable<void>;
    onSend$(ctx: StateContext<SignalRStateModel>, action: SignalRActions.Send): void;
    onCloseHub$(ctx: StateContext<SignalRStateModel>, action: SignalRActions.CloseHub): void;
    onCloseHubConnection$(ctx: StateContext<SignalRStateModel>, action: SignalRActions.CloseHubConnection): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<SignalRState, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<SignalRState>;
}
