import type { MediaTypeObject, SchemaObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'; /** Multipart parts stay structured until sending so nested text can resolve environment variables. */ export type MultipartPart = { key?: string; contentType?: string; headers?: Record; } & ({ type: 'text'; value: string; } | { type: 'file'; value: File; } | { type: 'blob'; value: Blob; } | { type: 'multipart'; value: MultipartPart[]; contentType: string; }); /** Identify ordered multipart independently of the editor's row representation. */ export declare const isPositionalMultipart: (contentType: string, media: MediaTypeObject) => boolean; /** Whether a media type needs ordered or nested multipart serialization. */ export declare const needsMultipartEncoding: (contentType: string, media: MediaTypeObject) => boolean; /** Resolve a positional item's schema independently of the encoding prefix length. */ export declare const getMultipartItemSchema: (schema: SchemaObject | undefined, index: number, itemSchema?: MediaTypeObject["itemSchema"]) => SchemaObject | undefined; /** Build ordered parts, applying prefix encodings independently of schema prefix lengths. */ export declare const buildMultipart: (value: unknown, contentType: string, encoding?: Pick, schema?: SchemaObject, nesting?: number) => MultipartPart[]; //# sourceMappingURL=build-multipart.d.ts.map