@nfdi4plants/swate-components
Version:
Customizable React components for ontology annotation, based on Swate and the ARC.
39 lines • 1.78 kB
TypeScript
import { uint8 } from '@fable-org/fable-library-js/Int32.js';
import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js';
/**
* Creates a typed byte array of binary data if it not already typed
*/
export declare function InternalUtilities_toUInt8Array(data: uint8[]): uint8[];
/**
* Asynchronously reads the File content as byte[]
*/
export declare function Browser_Types_File__File_ReadAsByteArray(instance: any): any;
/**
* Asynchronously reads the File content as a data url string
*/
export declare function Browser_Types_File__File_ReadAsDataUrl(instance: any): any;
/**
* Asynchronously reads the File contents as text
*/
export declare function Browser_Types_File__File_ReadAsText(instance: any): any;
export declare class ByteArrayExtensions {
constructor();
}
export declare function ByteArrayExtensions_$reflection(): TypeInfo;
/**
* Saves the binary content as a file using the provided file name.
*/
export declare function ByteArrayExtensions_SaveFileAs_5EF83E14(content: uint8[], fileName: string): void;
/**
* Saves the binary content as a file using the provided file name.
*/
export declare function ByteArrayExtensions_SaveFileAs_Z4C1C8351(content: uint8[], fileName: string, mimeType: string): void;
/**
* Converts the binary content into a data url by first converting it to a Blob of type "application/octet-stream" and reading it as a data url.
*/
export declare function ByteArrayExtensions_AsDataUrl_Z3F6BC7B1(content: uint8[]): string;
/**
* Converts the binary content into a data url by first converting it to a Blob of the provided mime-type and reading it as a data url.
*/
export declare function ByteArrayExtensions_AsDataUrl_5EF83E14(content: uint8[], mimeType: string): string;
//# sourceMappingURL=Extensions.fs.d.ts.map