import { Signal } from 'signals.js'; import { Connection } from './Connection'; import { Room, RoomAvailable } from './Room'; export declare class Client { id?: string; onOpen: Signal; onMessage: Signal; onClose: Signal; onError: Signal; protected connection: Connection; protected pongTimeout: any; protected pingTimeout: any; protected rooms: { [id: string]: Room; }; protected connectingRooms: { [id: string]: Room; }; protected requestId: number; protected hostname: string; protected storage: Storage; protected roomsAvailableRequests: { [requestId: number]: (value?: RoomAvailable[]) => void; }; constructor(url: string); join(roomName: string, options?: any): Room; getAvailableRooms(roomName: string, callback: (rooms: RoomAvailable[], err?: string) => void): void; close(): void; destroy(): void; protected connect(colyseusid: string): void; protected createConnection(path?: string, options?: any): Connection; protected ping(): void; /** * @override */ protected onMessageCallback(event: any): void; }