import { Dict } from '@chakra-ui/utils';
import { default as React } from 'react';
import { HeaderProps } from './components/header';
import { FileElement, RequiredMetadata, Signer } from './store';
export interface ImageKitEditorRef {
    loadImage: (image: string | FileElement) => void;
    loadImages: (images: Array<string | FileElement>) => void;
    setCurrentImage: (imageSrc: string) => void;
}
interface EditorProps<Metadata extends RequiredMetadata = RequiredMetadata> {
    theme?: Dict;
    initialImages?: Array<string | FileElement<Metadata>>;
    signer?: Signer<Metadata>;
    onAddImage?: () => void;
    exportOptions?: HeaderProps["exportOptions"];
    onClose: (args: {
        dirty: boolean;
        destroy: () => void;
    }) => void;
}
type ImageKitEditorComponent = <M extends RequiredMetadata = RequiredMetadata>(props: EditorProps<M> & React.RefAttributes<ImageKitEditorRef>) => React.ReactElement | null;
export declare const ImageKitEditor: ImageKitEditorComponent;
export type { EditorProps as ImageKitEditorProps };
