export declare type Promisable = Promise | T; export declare type ModuleSource = string | SharedArrayBuffer | Uint8Array; export declare type ModuleFormat = "builtin" | "commonjs" | "json" | "module" | "wasm"; export declare type ResolveHook = (specifier: string, context: { conditions: string[]; parentURL?: string; }, fallback: ResolveHook) => Promisable<{ url: string; format?: ModuleFormat; }>; export declare type GetFormatHook = (url: string, context: object, fallback: GetFormatHook) => Promisable<{ format: ModuleFormat; }>; export declare type TransformHook = (source: ModuleSource, context: Record<"url" | "format", string>, fallback: TransformHook) => Promisable<{ source: ModuleSource; }>; export declare type LoadHook = (url: string, context: { format?: ModuleFormat; }, fallback: LoadHook) => Promisable<{ format: ModuleFormat; source: ModuleSource; }>;