import EventEmitter from 'eventemitter3'; import { BaseResponse, ErrorInfo } from '../api/RTMClient'; import { RTMClientEventMap } from '../api/RTMEvents'; export declare class RequestQueue { private static _instance; private _requestMap; private constructor(); static get instance(): RequestQueue; addRequest(callbackName: string, timeoutMs: number, externalRequestId: number): Promise & { requestId: number; }; resolveRequest(requestId: number, errorCode: number, callbackName: string, ...args: any[]): boolean; } export type IrisApiParam = { funcName: string; params: string; buffers?: string[]; }; export declare const DeviceEventEmitter: EventEmitter; /** * @internal */ export declare function setDebuggable(flag: boolean): void; /** * @internal */ export declare function isDebuggable(): boolean; /** * @internal */ export type EventProcessor = { suffix: string; type: (data: any) => EVENT_TYPE; func: Function[]; preprocess?: (event: string, data: any, buffers: Uint8Array[]) => void; handlers: (data: any) => (T | undefined)[] | undefined; }; export declare enum EVENT_TYPE { RTMEvent = 0 } type ProcessorType = RTMClientEventMap; type EventProcessors = { RTMClientEventMap: EventProcessor; }; /** * @internal */ export declare const EVENT_PROCESSORS: EventProcessors; /** * @internal */ export declare function callIrisApi(this: any, funcName: string, params: any): any; /** * @internal */ export declare function emitEvent(eventType: EventType, eventProcessor: EventProcessor, data: any): void; type WrapRtmResultResult = BaseResponse & { callBackResult?: any; }; /** * @internal */ export declare function wrapRtmResult(data: any, operation: string, callbackName: string, withCallbackResult?: boolean): Promise; /** * @internal */ export declare function handleError(data: any, operation: string): ErrorInfo; export {}; //# sourceMappingURL=IrisRtmEngine.d.ts.map