UNPKG

@deep-foundation/deeplinks

Version:

[![npm](https://img.shields.io/npm/v/@deep-foundation/deeplinks.svg)](https://www.npmjs.com/package/@deep-foundation/deeplinks) [![Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/deep-fo

26 lines (25 loc) 967 B
import { Id } from './minilinks.js'; import React from 'react'; import * as dz from 'react-dropzone'; export declare const Files: React.NamedExoticComponent<{ [key: string]: any; render?: any; children?: any; prevent?: boolean; onDrop: (files: any, a: any, event: any, prevent: any) => void; insert?: any; containerId: Id; onInsert: (id: any, file: any, a: any, event: any) => void; Props?: any; }>; export declare function useFiles({ prevent, onDrop: _onDrop, insert, type_id: _type_id, containerId, onInsert, ...props }: { prevent?: boolean; onDrop: (files: any, a: any, event: any, prevent: any) => void; insert?: any; type_id?: Id; containerId: Id; onInsert: (id: any, file: any, a: any, event: any) => void; [key: string]: any; }): dz.DropzoneState; export declare function base64ToFile(dataurl: any, filename: any): Promise<File>; export declare function fileToBase64(file: any): Promise<string>;