import { AnyCircuitElement } from 'circuit-json'; interface CircuitRunnerConfiguration { snippetsApiBaseUrl: string; cjsRegistryUrl: string; verbose?: boolean; } interface WebWorkerConfiguration extends CircuitRunnerConfiguration { /** * @deprecated, renamed to webWorkerBlobUrl */ webWorkerUrl?: URL | string; webWorkerBlobUrl?: URL | string; } type CircuitWebWorker = { execute: (code: string) => Promise; executeWithFsMap: (opts: { entrypoint: string; fsMap: Record; }) => Promise; renderUntilSettled: () => Promise; getCircuitJson: () => Promise; on: (event: "renderable:renderLifecycle:anyEvent" | `asyncEffect:start` | `asyncEffect:end` | `renderable:renderLifecycle:${string}`, callback: (...args: any[]) => void) => void; clearEventListeners: () => void; kill: () => Promise; }; declare const createCircuitWebWorker: (configuration: Partial) => Promise; export { type CircuitWebWorker, type WebWorkerConfiguration, createCircuitWebWorker };