/** * Returns the byte length of an already-serialized value (`string` or `Buffer`). * @internal */ export declare function serializedByteSize(body: string | Buffer): number; /** * Estimates the serialized byte size of an arbitrary value. * * Falls back to `JSON.stringify` for objects. If that also fails, returns * `fallback` — callers choose `0` (conservative: don't reject) or * `Infinity` (conservative: assume large, offload to worker). * * @internal */ export declare function estimateByteSize(value: unknown, fallback?: number): number; //# sourceMappingURL=byteSize.d.ts.map