import { DrawingID } from '@buerli.io/core'; import { RedoOptions, ServerRequest, ServerResponse, UndoOptions } from '../types/ComClient'; import { AwvNodeClient } from './AwvNodeClient'; export declare enum SocketIOEvent { CONNECT = "connect", INIT = "init", PERMISSION = "permission", CONNECT_ERROR = "connect_error", CONNECT_TIMEOUT = "connect_timeout", SEND = "send", BINARY = "binary", JSON = "json", UNDO = "undo", REDO = "redo" } export declare class SocketIOClient extends AwvNodeClient { private url; private _socket; private _version; private _transactions; constructor(url: string, drawingId: DrawingID); connect(): Promise; disconnect(): Promise; requestByName(name: string, command?: ServerRequest): Promise; protected request(command: ServerRequest): Promise; undo(options?: UndoOptions): Promise; redo(options?: RedoOptions): Promise; protected ack(): void; protected syncState(): void; }