export interface RnRequestGzipPlan { body: string; contentEncoding: string | null; gzipSizeLog?: string; } /** * React Native 的 networking 层会根据 string body + Content-Encoding: gzip * 在 native 层执行压缩,因此这里不能直接发送预压缩后的二进制: * - Android 会移除非 string body 的 content-encoding header * - iOS 会在 header=gzip 时再次 gzip,导致双重压缩 */ export declare function createRnRequestGzipPlan(data: string, gzipEnabled: boolean, threshold: number, debug: boolean): RnRequestGzipPlan;