export declare const WORKER_HOST_HARD_CODE = "\n(function() {\n  const workerSrc = document.getElementById('kaitian-worker-src').getAttribute('data-value');\n\tconst worker = new Worker(workerSrc, { name: 'KaitianWorkerExtensionHost' });\n\tconst kaitianWebWorkerExtHostId = document.getElementById('kaitian-web-worker-ext-host-id').getAttribute('data-value');\n\n\tworker.onmessage = (event) => {\n    const { data } = event;\n    if (data instanceof MessagePort) {\n      window.parent.postMessage({\n        kaitianWebWorkerExtHostId,\n        data: data\n      }, '*', [data]);\n      return;\n    }\n\n    window.parent.postMessage({\n      kaitianWebWorkerExtHostId,\n      data: data\n    }, '*');\n\t};\n\n\tworker.onerror = (event) => {\n\t\tconsole.error(event.message, event.error);\n\t\twindow.parent.postMessage({\n\t\t\tkaitianWebWorkerExtHostId,\n\t\t\terror: {\n\t\t\t\tname: event.error ? event.error.name : '',\n\t\t\t\tmessage: event.error ? event.error.message : '',\n\t\t\t\tstack: event.error ? event.error.stack : []\n\t\t\t}\n\t\t}, '*');\n\t};\n\n\twindow.addEventListener('message', function(event) {\n\t\tif (event.source !== window.parent) {\n\t\t\treturn;\n\t\t}\n\t\tif (event.data.kaitianWebWorkerExtHostId !== kaitianWebWorkerExtHostId) {\n\t\t\treturn;\n    }\n\n\t\tworker.postMessage(event.data.data);\n\t}, false);\n})();\n";
export declare function startInsideIframe(workerSrc: string): {
    iframe: HTMLIFrameElement;
    extHostUuid: string;
};
//# sourceMappingURL=workerHostIframe.d.ts.map