/** * Isolate-lane eligibility of a compiled connector bundle. * * A bundle built with `ISOLATE_LANE_BUILD_OPTIONS` inlines every dependency * except Node builtins, which esbuild leaves as bare `require()` calls because * `platform: 'node'` marks them external. An isolate has no module loader, so * a surviving builtin `require` is the fail-closed signal that the connector * cannot run at all. The compiler reports it from the esbuild metafile; * this scan is the same check for bundles that arrive already compiled (the * gateway ships `compiled_code` to device workers), so the executor can refuse * at init with the builtin named instead of failing at the connector's first * call. */ export declare function isNodeBuiltinSpecifier(specifier: string): boolean; export declare const ISOLATE_PRELUDE_PROVIDED_BUILTINS: Set; /** Node builtins a bundle still requires, `node:` prefix stripped, sorted. */ export declare function findIsolateIneligibleBuiltins(code: string): string[]; /** Thrown before any isolate work when a bundle needs a Node process. */ export declare class IsolateLaneIneligibleError extends Error { readonly builtins: string[]; constructor(builtins: string[], label?: string); } /** Throw `IsolateLaneIneligibleError` when `code` still requires a Node builtin. */ export declare function assertIsolateEligible(code: string, label?: string): void; //# sourceMappingURL=eligibility.d.ts.map