import type { AjaxConfig, ConfigScope, ResolvedConfig } from './types.js'; export { mergeHeaders, mergeParams, mergeUrl } from './config.js'; export declare function bodyTransform(body: BodyInit | null | undefined): BodyInit | null | undefined; /** * 查找请求体中的Blob对象 * @param body */ export declare function findBodyBlobs(body: any): Promise; /** * 合并配置 * @param config */ export declare function mergeConfig(...config: (AjaxConfig | undefined)[]): ResolvedConfig; /** * 返回带显式 cleanup 的配置合并结果,适用于缺少 AbortSignal.any 的运行时。 */ export declare function mergeConfigScope(...config: (AjaxConfig | undefined)[]): ConfigScope; /** * 合并两个 signal。缺少原生 AbortSignal.any 时,请改用 mergeAbortSignalScope。 * @deprecated 对需要兼容旧运行时的多 signal 场景,请使用带 cleanup 的 scoped API。 */ export declare function mergeAbortSignal(prev?: AbortSignal | null, next?: AbortSignal | null): AbortSignal | null | undefined; export declare function catchCommonError(e: any, newError: (message?: string) => any): any;