//#region src/packages/https-hooks.d.mts /** * Node.js module loader hooks that enable importing from HTTP/HTTPS URLs. * See: https://nodejs.org/docs/latest-v24.x/api/module.html#import-from-https */ type ResolveContext = { parentURL?: string; conditions?: string[]; }; type ResolveResult = { url: string; shortCircuit?: boolean; format?: string; }; type NextResolve = (specifier: string, context: ResolveContext) => Promise; type LoadContext = { format?: string; }; type LoadResult = { format: string; shortCircuit?: boolean; source: string; }; type NextLoad = (url: string, context: LoadContext) => Promise; /** * Resolve hook: resolves relative specifiers against HTTP/HTTPS parent URLs. */ declare function resolve(specifier: string, context: ResolveContext, nextResolve: NextResolve): Promise; /** * Load hook: fetches module source from HTTP/HTTPS URLs. */ declare function load(url: string, context: LoadContext, nextLoad: NextLoad): Promise; /** * Path to this hooks file for use with node:module register() */ declare const httpsHooksPath: string; //#endregion export { httpsHooksPath, load, resolve }; //# sourceMappingURL=https-hooks.d.mts.map