import type { ExampleObject, MediaTypeObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'; /** Keep structured parts and File objects intact until the existing multipart serializer runs. */ export type MultipartBodyValue = unknown[] | Record; /** One editable leaf part; paths retain positions and literal property names. */ export type MultipartBodyPart = { path: (string | number)[]; value: unknown; schema?: SchemaObject; contentType?: string; canUpload: boolean; }; /** Raw wire examples stay in the raw editor, while JSON arrays/objects can expose individual parts. */ export declare const parseMultipartBody: (example: ExampleObject | null | undefined) => MultipartBodyValue | undefined; /** Match the serializer's positional and named layouts without flattening JSON parts into form fields. */ export declare const getMultipartBodyParts: (value: MultipartBodyValue, media: MediaTypeObject, compositionSelection?: Record) => MultipartBodyPart[]; /** Copy only the edited path so uploading a file never serializes sibling File objects or mutates the example. */ export declare const updateMultipartBodyPart: (body: MultipartBodyValue, path: (string | number)[], value: unknown) => MultipartBodyValue; //# sourceMappingURL=multipart-body.d.ts.map