import { OnDestroy } from "@angular/core"; import { BehaviorSubject, Subscription } from "rxjs"; import { IApiService } from "../common-types"; import { ExtraHeaders, SocketClient, SocketData, SocketDataObj } from "../utils/socket-client"; import { EventsService } from "./events.service"; import * as i0 from "@angular/core"; export declare class SocketService implements OnDestroy { readonly api: IApiService; protected ioPath: string; protected events: EventsService; protected client: SocketClient; protected userSub: Subscription; get status(): BehaviorSubject; get id(): string; constructor(api: IApiService, ioPath: string, events: EventsService); withAuth(extraHeaders?: ExtraHeaders): void; ngOnDestroy(): void; connect(extraHeaders?: ExtraHeaders): void; disconnect(): void; subscribe(event: string, cb: (value: SocketData) => void): Subscription; emit(event: string, content: SocketData): void; request(event: string, content: SocketDataObj): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }