export interface WSErrorDescriptor { code: number; message: string; } export declare enum WSErrors { IS_CONNECTED_READONLY = 0, IS_CONNECTING_READONLY = 1, INCOMING_MESSAGE_FAIL_DESERIALISE = 2, INCOMING_MESSAGE_WRONG_VERSION = 3, INCOMING_MESSAGE_UNKNOWN_DIRECTION = 4, NOT_CONNECTED = 5, CONNECTION_TIMEOUT = 6 } export declare class WSError extends Error { readonly text: string; readonly metadata: MetadataType; readonly code: number; static list: Record; toString(): string; valueOf(): string; getMetadata(): MetadataType; constructor(errorIdx: WSErrors, metadata?: any, context?: any); }