UNPKG

@blinkk/editor

Version:

Structured content editor with live previews.

11 lines (10 loc) 398 B
import { MediaFileData, MediaOptions } from '../editor/api'; export interface RemoteMediaComponent { upload(file: File): Promise<MediaFileData>; } export interface RemoteMediaConstructor extends BaseRemoteMediaProvider { new (options?: MediaOptions): RemoteMediaComponent; } export declare class BaseRemoteMediaProvider { static canApply(file: File, options?: MediaOptions): boolean; }