import type { BuildMultipartResult, ExpandMultipartRawResult, IBody } from './IBody.js'; /** * Encodes request bodies for multipart, urlencoded, and preview display. */ export declare class Body implements IBody { /** * Builds a human-readable summary of multipart form parts for request preview. * * @param body - Serialized multipart form parts JSON. * @returns Summary string for SentRequest.body. */ summarizeFormParts(body: string): string; /** * Builds a FormData body from serialized multipart form parts. * * @param body - Serialized multipart form parts JSON. * @returns FormData ready for fetch, or an error message when a file cannot be read. */ buildMultipart(body: string): Promise; /** * Expands a verbatim multipart raw body, replacing `<>` tokens with file bytes. * * Malformed multipart structure is preserved as typed so intentionally invalid bodies * can be sent for testing. Only unreadable files produce an error. * * @param raw - Verbatim multipart body text from the Raw editor. * @returns Wire bytes plus Content-Type, or an error when a file cannot be read. */ expandMultipartRaw(raw: string): Promise; /** * Builds an application/x-www-form-urlencoded body from serialized key-value rows. * * @param body - JSON array stored in the request body field. * @returns URL-encoded query string for the request body. */ buildUrlEncoded(body: string): string; } //# sourceMappingURL=Body.d.ts.map