import { MessageFormatter } from '../../../../../i18n';
import { UploadDictionary } from '../../uploadDictionary';
import { ComponentType, ReactNode } from 'react';
import { EntityId } from '@contember/binding';
import { EntityConnector } from '../hooks/useConnectSelectedEntities';
export declare type SelectFileDialogProps = ResolvedFileSelectionComponent & {
    onSelect: (entities: EntityConnector[]) => void;
    onCancel: () => void;
    formatMessage: MessageFormatter<UploadDictionary>;
    insertSelectedText?: string;
    selectButtonText: ReactNode;
    isMultiple: boolean;
};
export interface ResolvedFileSelectionInnerProps {
    onToggleSelectConnector: (connector: EntityConnector) => void;
    selectedEntityIds: EntityId[];
}
export declare type ResolvedFileSelectionComponent<SFExtraProps extends {} = {}> = {
    dialogComponent: ComponentType<SFExtraProps & ResolvedFileSelectionInnerProps>;
    dialogProps: SFExtraProps;
};
export declare const SelectFileDialog: ({ onSelect, onCancel, formatMessage, insertSelectedText, selectButtonText, isMultiple, dialogComponent: Component, dialogProps, }: SelectFileDialogProps) => JSX.Element;
//# sourceMappingURL=SelectFileDialog.d.ts.map