import React, { ReactNode } from 'react';
export declare function ImageUploadModal({ children, defaultCaption, onSave, mode, }: {
    children: ReactNode;
    mode?: 'add' | 'edit';
    defaultCaption?: string;
    onSave: (value: {
        file: {
            id: string;
            src: string;
        };
        caption: string;
    }) => void;
}): React.JSX.Element;
