synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
9 lines • 653 B
TypeScript
import { ProjectStorageLocationUsage } from '@sage-bionetworks/synapse-client';
/**
* Precheck a set of uploads against a storage limit. Returns true if the uploads would cause the limit to be exceeded.
* @param files the files to upload
* @param usage the current storage usage
* @param pendingUploadsInBytes the total size of the pending uploads which have already begun, but have not been accounted for in the usage
*/
export declare function willUploadsExceedStorageLimit(files: ArrayLike<File>, usage: ProjectStorageLocationUsage | undefined, pendingUploadsInBytes: number): boolean;
//# sourceMappingURL=willUploadsExceedStorageLimit.d.ts.map