import * as i0 from '@angular/core'; import { ModuleWithProviders, OnDestroy } from '@angular/core'; import { SocketOptions, ManagerOptions, Manager, Socket as Socket$1 } from 'socket.io-client'; import { Observable } from 'rxjs'; import { EventsMap, DefaultEventsMap, EventNames, EventParams } from '@socket.io/component-emitter'; interface SocketioConfig { url: string; /** @see {@link ManagerOptions} */ options?: Partial; } declare class SocketioModule { static forRoot(config?: SocketioConfig): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class Socket implements OnDestroy { private socket; /** * @see {@link Socket.id} */ get id(): string | undefined; /** * @see {@link Socket.connected} */ get connected(): boolean; /** * @see {@link Socket.disconnected} */ get disconnected(): boolean; /** * @see {@link Socket.io} */ get io(): Manager; /** * @see {@link Socket.auth} */ get auth(): Socket$1['auth']; /** * @see {@link Socket.auth} */ set auth(auth: Socket$1['auth']); constructor({ url, options }: SocketioConfig); ngOnDestroy(): void; /** * @see {@link Socket.connect} */ connect(): this; /** * @see {@link Socket.disconnect} */ disconnect(): this; /** * @see {@link Socket.send} */ send(...args: any[]): this; /** * @see {@link Socket.emit} */ emit>(eventName: Ev, ...args: EventParams): this; /** * @see {@link Socket.on} */ on(eventName: string): Observable; /** * @see {@link Socket.once} */ once(eventName: string): Observable; /** * @see {@link Socket.compress} */ compress(compress: boolean): this; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵprov: i0.ɵɵInjectableDeclaration>; } export { Socket, SocketioModule };