/**
 * JSDOM-based executor for simulating IIFE bundles
 *
 * Executes actual production IIFE bundles in a virtual DOM environment
 * with env-based mocking from destination examples.
 */
import type { Elb } from '@walkeros/core';
import type { CallTracker, ApiCall } from './tracker.js';
export interface ExecutionResult {
    collector: unknown;
    elb: unknown;
    elbResult: Elb.PushResult | undefined;
    usage: Record<string, ApiCall[]>;
    duration: number;
}
interface DestinationEnv {
    init?: Record<string, unknown>;
    push: Record<string, unknown>;
    simulation?: string[];
}
/**
 * Execute production IIFE bundle in JSDOM with env-based mocking
 *
 * Main orchestration function that:
 * 1. Creates JSDOM virtual DOM
 * 2. Builds sandbox from dynamically loaded envs
 * 3. Executes IIFE in JSDOM
 * 4. Waits for window.collector/elb assignment
 * 5. Runs event through elb
 * 6. Returns tracked API calls
 */
export declare function executeInJSDOM(bundlePath: string, destinations: Record<string, unknown>, event: {
    name: string;
    data?: unknown;
}, tracker: CallTracker, envs: Record<string, DestinationEnv>, timeout?: number): Promise<ExecutionResult>;
export {};
//# sourceMappingURL=jsdom-executor.d.ts.map