@lens-protocol/react-web
Version:
Lens Protocol SDK for React web applications
19 lines (18 loc) • 726 B
TypeScript
import { BaseUploader } from '@lens-protocol/react';
/**
* Creates a [Blob URI](https://w3c.github.io/FileAPI/#blob-url) from the given file.
*
* Internally it uses `URL.createObjectURL` and other internals to create a URI that
* can be referenced by a DOM attribute (e.g. `src` of an `img` tag), and at the same
* time retains some critical information about the file (e.g. its original name).
*
* @param file - a `File` object as obtained from an `input` element or a `FileList`
* @returns a Blob URI as a string
*/
export declare function fileToUri(file: File): string;
/**
* {@inheritDoc BaseUploader}
*/
export declare class Uploader extends BaseUploader {
protected isLocalFile(value: string): boolean;
}