synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
21 lines • 929 B
TypeScript
import { EntityType } from '@sage-bionetworks/synapse-client';
import { RefObject } from 'react';
export declare const PYTHON_CLIENT_IMPORT_AND_LOGIN = "import synapseclient\nsyn = synapseclient.Synapse()\nsyn.login(authToken=\"YOUR_TOKEN_HERE\")";
export declare const R_CLIENT_IMPORT_AND_LOGIN = "library(synapser)\nsynLogin(authToken=\"YOUR_TOKEN_HERE\")";
declare enum DownloadAction {
downloadFile = 0,
addToCart = 1,
programmaticAccess = 2,
programmaticAccessDocker = 3,
exportTable = 4
}
export declare function getDownloadActionsForEntityType(type: EntityType): DownloadAction[][];
export declare function EntityDownloadButton(props: {
entityId: string;
name: string;
entityType: EntityType;
downloadConfirmationContainer?: RefObject<HTMLElement | null>;
disabled?: boolean;
}): import("react/jsx-runtime").JSX.Element;
export {};
//# sourceMappingURL=EntityDownloadButton.d.ts.map