import type { RequestBodyObject } from '@scalar/workspace-store/schemas/v3.2/strict/request-body'; import { type MultipartPart } from './build-multipart.js'; type FormData = { mode: 'formdata'; value: ({ type: 'text'; key: string; value: string; contentType?: string; } | { type: 'file'; key: string; value: File; contentType?: string; } | { type: 'blob'; key: string; value: Blob; contentType?: string; })[]; }; type UrlEncoded = { mode: 'urlencoded'; value: { key: string; value: string; }[]; }; type Raw = { mode: 'raw'; value: string | File | Blob; contentType?: string; }; export type RequestBody = FormData | UrlEncoded | Raw | { mode: 'multipart'; contentType: string; value: MultipartPart[]; }; /** * Create the fetch request body */ export declare const buildRequestBody: (requestBody: RequestBodyObject | undefined, /** The key of the current example */ exampleName?: string, /** Selected anyOf/oneOf request-body variants keyed by schema path */ requestBodyCompositionSelection?: Record, openapiVersion?: string) => RequestBody | null; export {}; //# sourceMappingURL=build-request-body.d.ts.map