import type { Headers } from './types.js'; /** * Marks a response body to be written verbatim by transport adapters * (no JSON.stringify). Use for HTML, XML, CSV, plain text, or binary. */ export declare class RawResponseBody { readonly content: string | Uint8Array; readonly contentType: string | undefined; constructor(content: string | Uint8Array, contentType?: string); } export declare const isRawResponseBody: (value: unknown) => value is RawResponseBody; export type SerializedResponseBody = { type: 'empty'; } | { type: 'raw'; content: string | Uint8Array; contentType: string | undefined; } | { type: 'json'; value: unknown; }; /** * Decide how a transport should write a response body. * `RawResponseBody` is always verbatim. A plain string / Uint8Array is verbatim * only when a non-JSON `content-type` header is already set — otherwise JSON. */ export declare const serializeResponseBody: (body: unknown, headers?: Headers) => SerializedResponseBody; //# sourceMappingURL=raw-body.d.ts.map