export interface SourceModuleBuildResult { outputFiles?: readonly { text: string }[]; } export interface BundledSourceModuleOptions { /** A trusted bundler supplied by the consuming build tool. */ build(options: Record): Promise; /** Application aliases, plugins, dependency paths, loaders, and entry declaration. */ buildOptions: Record; /** Absolute logical filename used by CommonJS resolution; no output file is written. */ filename: string; require?: (id: string) => unknown; } /** Executes trusted source code in the current process. This is not an execution sandbox. */ export declare function evaluateBundledSourceModule(options: BundledSourceModuleOptions): Promise;