synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
16 lines • 930 B
TypeScript
import { EntityUploaderState } from '@/utils/hooks/useUploadFileEntity/useUploadFileEntities';
export type EntityUploadProps = {
/** The ID of the entity to upload to. If this is a container, file(s) will be added as children. If this is a
* FileEntity, then a file may be uploaded as a new version */
entityId: string;
/** Callback that is invoked when the state of the uploader changes */
onStateChange?: (state: EntityUploaderState) => void;
/** Callback that is invoked when component is ready to upload */
onUploadReady?: () => void;
};
export type EntityUploadHandle = {
/** Programmatically add files to the upload (e.g. on drag & drop) */
handleUploads: (fileList: ArrayLike<File>) => void;
};
export declare const EntityUpload: import("react").ForwardRefExoticComponent<EntityUploadProps & import("react").RefAttributes<EntityUploadHandle>>;
//# sourceMappingURL=EntityUpload.d.ts.map