/** * Base executor implementation shared by browser and node executors. * * This module provides the core execution logic with console capture, * timeout handling, and export invocation. Platform-specific executors * only need to provide a function to load code as a module. */ import type { IExecutor } from "../types"; /** * Function that loads JavaScript code as a module. * Platform-specific implementations convert code to an importable URL. */ export type ModuleLoader = (code: string) => Promise>; /** * Options for creating a basic executor. */ export interface BasicExecutorOptions { /** * Default timeout in milliseconds. * @default 30000 */ defaultTimeout?: number; } /** * Create an executor using the provided module loader. * * This is the shared implementation used by both browser and node executors. * The only platform-specific part is how code is loaded as a module. * * @param loadModule - Function that loads code as a module * @param options - Executor options * @returns An executor instance */ export declare function createBasicExecutor(loadModule: ModuleLoader, options?: BasicExecutorOptions): IExecutor; //# sourceMappingURL=executor.d.ts.map