import { type SxProps, type Theme } from '@mui/material'; import { type ReactNode } from 'react'; /** What a picture is previewed on: the ground it will be seen on. */ export type ImageFileFieldGround = 'light' | 'dark'; export interface ImageFileFieldProps { label: string; /** The file held, or `null`. Nothing is uploaded here. */ file: File | null; /** Called with the file chosen, or `null` when it is removed. */ onChange: (file: File | null) => void; /** The file chooser's `accept`; a dropped file is held to it too. */ accept?: string; /** Called with a file `accept` refused, so the caller can say why. */ onRejected?: (file: File) => void; /** Draws the field on this ground. Without one it sits on the surface it is on. */ ground?: ImageFileFieldGround; /** One line under the field, while no file is held. */ helperText?: ReactNode; /** Why the last file was refused. Shown over the helper text and the file's name. */ error?: ReactNode; disabled?: boolean; sx?: SxProps; } /** * Pick one image, see it, and take it away again (AGL-4119). A compact tile on * {@link FileDropZone}, for a form that holds a file until there is somewhere * to put it. It hands back the file and nothing else: what a form accepts, * what it refuses and where the file goes are the form's. Figma: "Create site / * Image file field" in Aglyn Console (web), page Sites ยท Create site. */ export declare function ImageFileField(props: ImageFileFieldProps): import("react").JSX.Element; export default ImageFileField;