import { tsEvent } from '../event/event'; /** * 接口定义模块 */ export declare module tsInterface { /** * 基础对象接口 */ interface IEntry { /** * 对象名称 */ entryName: string; /** * 实例编号 */ id: number; /** * 实例名称 */ name: string; /** * 实例类型 */ typ: number; /** * 实例格式化名称,${this.entryName}[${this.id},${this.name},${this.typ}] */ fullName: string; trace(message: any, ...optionalParams: any[]): void; debug(message: any, ...optionalParams: any[]): void; info(message: any, ...optionalParams: any[]): void; warn(message: any, ...optionalParams: any[]): void; error(message: any, ...optionalParams: any[]): void; tracef(message: string, ...optionalParams: any[]): void; debugf(message: string, ...optionalParams: any[]): void; infof(message: string, ...optionalParams: any[]): void; warnf(message: string, ...optionalParams: any[]): void; errorf(message: string, ...optionalParams: any[]): void; traceStack(message: any, ...optionalParams: any[]): void; debugStack(message: any, ...optionalParams: any[]): void; infoStack(message: any, ...optionalParams: any[]): void; warnStack(message: any, ...optionalParams: any[]): void; errorStack(message: string, ...optionalParams: any[]): void; traceStackf(message: string, ...optionalParams: any[]): void; debugStackf(message: string, ...optionalParams: any[]): void; infoStackf(message: string, ...optionalParams: any[]): void; warnStackf(message: string, ...optionalParams: any[]): void; errorStackf(message: string, ...optionalParams: any[]): void; } interface ILogger { trace(message: any, ...optionalParams: any[]): void; debug(message: any, ...optionalParams: any[]): void; info(message: any, ...optionalParams: any[]): void; warn(message: any, ...optionalParams: any[]): void; error(message: any, ...optionalParams: any[]): void; tracef(message: string, ...optionalParams: any[]): void; debugf(message: string, ...optionalParams: any[]): void; infof(message: string, ...optionalParams: any[]): void; warnf(message: string, ...optionalParams: any[]): void; errorf(message: string, ...optionalParams: any[]): void; traceStack(message: any, ...optionalParams: any[]): void; debugStack(message: any, ...optionalParams: any[]): void; infoStack(message: any, ...optionalParams: any[]): void; warnStack(message: any, ...optionalParams: any[]): void; errorStack(message: string, ...optionalParams: any[]): void; traceStackf(message: string, ...optionalParams: any[]): void; debugStackf(message: string, ...optionalParams: any[]): void; infoStackf(message: string, ...optionalParams: any[]): void; warnStackf(message: string, ...optionalParams: any[]): void; errorStackf(message: string, ...optionalParams: any[]): void; } interface IEvent { addEventListener(name: string, handler: (event: tsEvent.Event, caller: any, ...args: any[]) => void, caller: any, limit: number): tsEvent.Event; delEventListener(event: tsEvent.Event): boolean; delEventListenerById(name: string, id: number): boolean; clearEventListener(name: string): boolean; dispatchEvent(name: string, ...args: any[]): void; } interface IWebSocket { onclose: ((result: any) => any) | null; onerror: ((result: any) => any) | null; onmessage: ((result: any) => any) | null; onopen: ((result: any) => any) | null; /** * Returns a string that indicates how binary data from the WebSocket object is exposed to scripts: * * Can be set, to change how binary data is returned. The default is "blob". */ binaryType: string; /** Returns the state of the WebSocket object's connection. It can have the values described below. */ readonly readyState: number; /** Returns the URL that was used to establish the WebSocket connection. */ readonly url: string; /** Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason. */ close(code?: number, reason?: string): void; /** Transmits data using the WebSocket connection. data can be a string, a Blob, an ArrayBuffer, or an ArrayBufferView. */ send(data: any): void; } }