import React from 'react'; import { FileInputProps } from '../FileInput'; import { FormRowCustomProps } from '../FormRow'; import { LabelCustomProps } from '../Label'; export interface ImageRowSrcObject { uid: string; src: string; path: string; } export interface ImageRowOnRemoveData { uid: string; path: string; index: number; } export interface ImageRowProps extends FormRowCustomProps, LabelCustomProps, FileInputProps { labelForKey: string; imgSrcArray: Array; maxNumber?: number; filePattern?: RegExp; avatarEditorData?: any; onRemove(data: ImageRowOnRemoveData): Promise; onUpload({ file, editor }: { file?: File; editor: any; }): Promise; } /** * * A component to manage uploading, downloading, and deleting images. This component contains a `Row`, `Label`, `FileInput` and some additional components. * * The editor popup is based on [React Avatar Editor](https://github.com/mosch/react-avatar-editor#readme). * * Note: This component is a bit complex and may shift in API over time. * */ export declare const ImageRow: React.FC;