synapse-react-client
Version:
[](https://badge.fury.io/js/synapse-react-client) [](https://github.com/prettier/prettie
23 lines • 1.44 kB
TypeScript
import { FileHandle } from '@sage-bionetworks/synapse-types';
import { PreviewRendererType } from './PreviewRendererType';
export declare const IMAGE_CONTENT_TYPES: string[];
export declare const VIDEO_EXTENSIONS: string[];
export declare const CODE_EXTENSIONS: string[];
export declare const MARKDOWN_EXTENSIONS: string[];
/**
* Given a file handle that represents a link to original data, return the type of renderer that we could use to
* display the file contents in the browser.
*
* @returns the PreviewRendererType that would be used to render the file contents, or NONE if the file cannot be rendered
*/
export declare function getOriginalFileHandleRenderer(dataFileHandle: FileHandle): PreviewRendererType;
/**
* Given a file handle that represents a preview of original data (which is generated by Synapse), return the type of renderer that we could use to
* display the preview file contents in the browser.
*
* @param previewFileHandle the file handle that represents a preview of original data
* @param originalFileHandle the file handle that represents the original data that the preview captures.
* @returns the PreviewRendererType that would be used to render the preview file contents, or NONE if the file cannot be rendered
*/
export declare function getPreviewFileHandleRenderer(previewFileHandle: FileHandle, originalFileHandle: FileHandle): PreviewRendererType;
//# sourceMappingURL=PreviewUtils.d.ts.map