@deep-foundation/deeplinks
Version:
[](https://www.npmjs.com/package/@deep-foundation/deeplinks) [](https://gitpod.io/#https://github.com/deep-fo
26 lines (25 loc) • 967 B
TypeScript
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>;