UNPKG

@diffusionstudio/core-v4

Version:

2D motion graphics and video rendering engine

16 lines (15 loc) 574 B
import { MediaInput } from '../types'; /** * This utility creates an anchor tag and clicks on it * @param source Blob url or base64 encoded svg * @param name File name suggestion */ export declare function downloadObject(source: MediaInput, name?: string): Promise<void>; /** * This utility creates a file input element and clicks on it * @param accept comma separated mime types * @example audio/mp3, video/mp4 * @param multiple enable multiselection * @default true */ export declare function showFileDialog(accept: string, multiple?: boolean): Promise<File[]>;