/** 判断当前运行时是否为 Node.js。 */ export declare function isNodeRuntime(): boolean; /** 浏览器无法跳过 TLS 校验,因此在发起请求前提前失败。 */ export declare function assertInsecureSupported(enabled: boolean | undefined): void; /** 发起 fetch 请求;Node.js 下的 `insecure` 只作用于当前 HTTPS 请求。 */ export declare function fetchWithInsecureTls(enabled: boolean | undefined, url: string, init: RequestInit): Promise; /** 保留给内部测试和兼容调用:校验 TLS 选项,但不再改写进程级环境变量。 */ export declare function withInsecureTls(enabled: boolean | undefined, fn: () => Promise): Promise;