import { ESSceneObject } from 'vtxf-xe2/dist-node/xe2-base-objects'; import { PartialWithUndefinedReactivePropsToNativeProps, ReactivePropsToNativePropsAndChanged } from 'vtxf-xe2/dist-node/xe2-base-utils'; import { SceneObjectKey } from 'vtxf-xe2/dist-node/xe2-utils'; import { WebSocketClient, WebSocketMsgDataType } from '../../../shared/WebSocketClient'; export declare type MyWebSocketClientMsgFuncType = (msgData: WebSocketMsgDataType) => void; export declare type HeartBeatModeType = 'simple' | 'standard' | 'none'; export declare const msgDataFuncStrReadMe = "# \u793A\u4F8B\u4EE3\u7801\n```\nasync function (msgData) {\n let uint8Array = undefined;\n if (msgData instanceof ArrayBuffer) {\n uint8Array = new Uint8Array(msgData);\n } else if (msgData instanceof Blob) {\n const arrayBuffer = await msgData.arrayBuffer();\n uint8Array = new Uint8Array(arrayBuffer);\n } else if (msgData instanceof Uint8Array) {\n uint8Array = msgData;\n } else {\n return;\n }\n\n const flyToConfigMap = {\n \"55 01 32 00 00 00 01 89\": {\n \"position\": [\n 100.34783226204183,\n 34.50965928262229,\n 4094410.0844377456\n ],\n \"rotation\": [\n 360,\n -89.94381318987573,\n 0\n ],\n },\n \"55 01 32 00 00 00 02 8A\": {\n \"position\": [\n 118.24339296795846,\n 36.56597966474985,\n 526320.4023844689\n ],\n \"rotation\": [\n 334.1282466912997,\n -59.4764245454952,\n 0.034950514001634306\n ],\n },\n };\n const { uint8ArrayToHex } = XE2['my3dtiles-lib-main'].WebSocketClient;\n const hexStr = uint8ArrayToHex(uint8Array);\n const pr = flyToConfigMap[hexStr];\n if (!pr) { \n console.warn(`\u4E0D\u80FD\u6839\u636Ews\u6D88\u606F(${hexStr})\u83B7\u53D6\u5230\u98DE\u884C\u89C6\u89D2\uFF01`);\n return;\n }\n g_app.czmViewer.flyTo(pr.position, undefined, pr.rotation);\n}\n```\n"; export declare class MyWebSocketClient extends ESSceneObject { static readonly type: string; get typeName(): string; get defaultProps(): { enabled: boolean; url: string; log: boolean; messageFuncStr: string; heartBeatMode: HeartBeatModeType; heartBeatInterval: number; heartBeatRcvTimeOut: number; heartBeatMsg: string; heartBeatRcvMsg: string; execOnceFuncStr: string; updateFuncStr: string; toDestroyFuncStr: string; createAppendedObjFuncStr: string; name: string; ref: string | undefined; devTags: import("vtxf-xe2/dist-node/xe2-base-utils").ReactiveVariable; extras: import("vtxf-xe2/dist-node/xe2-base-utils").ReactiveVariable; }; get json(): JsonType; set json(value: JsonType); static heartBeatModes: string[]; static msgDataFuncStrReadMe: string; static defaults: { viewerTagsEnums: [string, string][]; }; private _websocketClient; get websocketClient(): WebSocketClient; get messageEvent(): import("vtxf-xe2/dist-node/xe2-base-utils").Event<[WebSocketMsgDataType]>; send(msgData: WebSocketMsgDataType): void; forceReconnect(): void; private _messageFunc; get messageFunc(): MyWebSocketClientMsgFuncType | undefined; set messageFunc(value: MyWebSocketClientMsgFuncType | undefined); get messageFuncChanged(): import("vtxf-xe2/dist-node/xe2-base-utils").Listener<[MyWebSocketClientMsgFuncType | undefined, MyWebSocketClientMsgFuncType | undefined]>; static defaultMessageFuncStr: string; private _messageFuncInit; constructor(id?: SceneObjectKey); getProperties(language?: string): import("vtxf-xe2/dist-node/xe2-base-objects").Property[]; } export declare namespace MyWebSocketClient { const createDefaultProps: () => { enabled: boolean; url: string; log: boolean; messageFuncStr: string; heartBeatMode: HeartBeatModeType; heartBeatInterval: number; heartBeatRcvTimeOut: number; heartBeatMsg: string; heartBeatRcvMsg: string; execOnceFuncStr: string; updateFuncStr: string; toDestroyFuncStr: string; createAppendedObjFuncStr: string; name: string; ref: string | undefined; devTags: import("vtxf-xe2/dist-node/xe2-base-utils").ReactiveVariable; extras: import("vtxf-xe2/dist-node/xe2-base-utils").ReactiveVariable; }; } export interface MyWebSocketClient extends ReactivePropsToNativePropsAndChanged> { } declare type JsonType = PartialWithUndefinedReactivePropsToNativeProps & { type: string; }>; export {};