import { ReactNode } from 'react';
import { PickerFileMetadata } from 'filestack-js';
export type UploadImageProps = {
    /**
     * acceptedTypes are used for uploading images with the available type
     */
    acceptedTypes?: string[];
    /**
     * children element which clicks opens filestack
     */
    children: ({ openFilePicker }: {
        openFilePicker: () => void;
    }) => ReactNode;
    /**
     * enable crop, circle, rotate and force
     */
    localFileUploadOnly?: boolean;
    maxSize?: number;
    /**
     * old attachment ID to save in case user does not save replacement image
     */
    oldAttachmentId?: string | undefined;
    /**
     * old attachment url to save in case user does not save replacement image
     */
    oldAttachmentUrl?: string | undefined;
    /**
     * upload event
     */
    onUpload?: (data: [file: PickerFileMetadata] | [
        file: PickerFileMetadata,
        {
            oldAttachmentId: string;
            oldAttachmentUrl: string;
        }
    ]) => void;
    /**
     * enable crop, circle, rotate and force
     */
    reformatOptions?: boolean;
    /**
     * image url
     */
    value?: string | undefined;
};
export declare function UploadImage({ acceptedTypes, onUpload, children, reformatOptions, localFileUploadOnly, oldAttachmentId, oldAttachmentUrl, maxSize, }: UploadImageProps): JSX.Element;
