synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
17 lines • 895 B
TypeScript
import { ExternalObjectStoreFileHandle } from '@sage-bionetworks/synapse-client';
import { UseMutationOptions } from '@tanstack/react-query';
import { FileUploadArgs } from './FileUploadArgs';
type UseDirectUploadToS3Args = FileUploadArgs & {
readonly accessKey: string;
readonly secretKey: string;
readonly bucketName: string;
readonly endpoint: string;
readonly keyPrefixUUID: string;
};
/**
* Mutation used to directly upload a file to an S3-compatible API and create a
* Synapse ExternalObjectStoreFileHandle pointing to the uploaded file.
*/
export declare function useDirectUploadToS3(options?: UseMutationOptions<ExternalObjectStoreFileHandle, unknown, UseDirectUploadToS3Args>): import("@tanstack/react-query").UseMutationResult<ExternalObjectStoreFileHandle, unknown, UseDirectUploadToS3Args, unknown>;
export {};
//# sourceMappingURL=useDirectUploadToS3.d.ts.map