UNPKG

@cross-nft-marketplace/auction-house-nft-components

Version:
35 lines (34 loc) 1 kB
/// <reference types="react" /> import type { IMedia } from "@cross-nft-marketplace/auction-house-nft-hooks"; import type { ThemeType } from "../context/MediaContext"; import type { MediaEx } from "./MediaInfo"; export declare type MediaUriType = { uri: string; type?: string; }; export declare type RenderRequest = { renderingContext: "PREVIEW" | "FULL"; }; export declare type RenderComponentType = { media?: IMedia; contextMedias: MediaEx[]; request: RenderRequest; getString: any; getStyles: any; theme: ThemeType["theme"]; a11yIdPrefix?: string; }; export interface RendererConfig { supportedMimeTypes: string[]; render: React.FunctionComponent<RenderComponentType>; } export declare enum MIME_TYPES_CONTENT { IMAGE = "image/", VIDEO = "video/", HTML = "text/html", AUDIO = "audio/", MODEL = "model/gltf", TEXT = "text/", IMAGE_GIF = "image/gif", PDF_DOCUMENT = "application/pdf" }