import { VizContent } from "@vizhub/viz-types"; import { BuildWorkerMessage } from "../orchestration/types"; declare class MockWorker { url: string; private listeners; constructor(url: string); addEventListener(type: string, callback: (event: any) => void): void; removeEventListener(type: string, callback: (event: any) => void): void; postMessage(message: BuildWorkerMessage): void; dispatchEvent(event: any): void; lastMessage: any; } declare class MockIframe { srcdoc: string; } export declare function testMockedIframeWithWorker({ vizContent, expectedHtmlUpdate, expectError, customAssertions, }: { vizContent: VizContent; expectedHtmlUpdate?: boolean; expectError?: boolean; customAssertions?: (params: { worker: MockWorker; iframe: MockIframe; runtime: any; errorMessage: string | null; }) => void; }): Promise; export {}; //# sourceMappingURL=testMockedIframeWithWorker.d.ts.map