import * as backend from "#backend"; export declare const AbstractModule: typeof backend.Module; export type AbstractModule = backend.Module; export declare namespace Module { type ImportAttributes = Record; type Linker = ( /** * The specifier of this import: `import {} from "specifier"` */ specifier: string, /** * The fully-resolved name of the importing module */ referrer: string | undefined, /** * Import attributes of this import: `import {} from "specifier" with { type: 'json' }` */ attributes?: ImportAttributes) => AbstractModule | undefined | Promise; interface EvaluateOptions { /** * Maximum amount of time in milliseconds the module body is allowed to run before execution is * canceled. Default is no timeout. See `Script.RunScriptOptions.timeout`. */ timeout?: number | undefined; } /** Internal-ish */ interface LinkRecord { /** Modules corresponding to `payload` ids */ modules: AbstractModule[]; /** [[ count, module... ]... ] */ payload: number[]; } interface Request { /** * The specifier of this import: `import {} from "specifier"` */ specifier: string; /** * Import attributes of this import: `import {} from "specifier" with { type: 'json' }` */ attributes?: ImportAttributes; } } /** * Compiled `SourceTextModule`. Created with `agent.compileModule`. */ export interface Module extends AbstractModule { link: (realm: backend.Realm | null, linker: Module.Linker) => Promise; } //# sourceMappingURL=module.d.ts.map