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