/** * The media-upload string field: a drag-drop surface plus a paste fallback that * reads the chosen file client-side and emits the encoded string the schema * expects (a base64 body or a full `data:` URL). Every input path enforces the * effective byte cap and the declared MIME, rejecting an over-cap value or a * mismatched type LOUDLY — never silently truncated or accepted. */ import type { ReactNode } from 'react'; import type { MediaUpload } from './field-model'; /** * A string field whose schema opts into a file upload. Reads the chosen file * client-side and emits the encoded string the schema expects (a base64 body or * a full `data:` URL) — bounded by a size cap and the declared MIME, both * rejected LOUDLY. A text fallback (paste a URL/base64) stays available. */ export declare function MediaField({ heading, description, error, media, value, onChange, }: { heading: string; description: string | undefined; error: string | undefined; media: MediaUpload; value: string; onChange: (value: string) => void; }): ReactNode; //# sourceMappingURL=media-field.d.ts.map