import * as Comlink from 'comlink'; import { ViewRenderingCallbacks } from '../types/rendering'; /** * 在嵌入页面中引入的 Servant 对象,用于处理外部接入方和内部模块之间的通信 */ export declare class EmbeddingClient { _endpoint: Comlink.Endpoint; _remote: Comlink.Remote; constructor(); /** * 对外部 Master 暴露一个命名方法 */ exposeFunction(funcName: string, func?: Function): void; /** * 返回远端的 Proxy 实例 */ remote(): Comlink.Remote; /** * 标记当前 client 已经准备好 */ ready(): void; /** * 销毁当前 Servant */ destroy(): void; }