import { Subject } from "rxjs"; import { CfWebSocketConfiguration } from "../../interfaces"; import { CfConfigService } from "./config.service"; import * as i0 from "@angular/core"; export declare class CfWebSocket { private configService; isBrowser: boolean; configuration: CfWebSocketConfiguration; webSocket: WebSocket | null; onConnected: Subject; onClosed: Subject; onMessage: Subject; opened: boolean; document: Document | null; open(): void; attachEvents(): void; close(code?: number | undefined, reason?: string | undefined): void; constructor(configService: CfConfigService, configuration: Partial); } export declare class CfWebSocketService { configService: CfConfigService; sockets: Map; messages: Subject; document: Document; isBrowser: boolean; create(name: string, configuration?: Partial): CfWebSocket | null; close(name: string, code?: number | undefined, reason?: string | undefined): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }