import { File as FormidableFile } from 'formidable'; import { UploadedFile as UploadedFileContract } from '@supercharge/contracts'; export declare class UploadedFile implements UploadedFileContract { /** * Stores the raw formidable file from the request. */ private readonly file; /** * Create a new instance. */ constructor(file: FormidableFile); /** * Returns the file name (according to the uploading client). */ name(): string | undefined; /** * Returns the current file path of this uploaded file. Uploaded files * are stored in a temporary location of the operating system. */ path(): string; /** * Returns the file size in bytes. */ size(): number; /** * Returns the file’s mime type (according to the uploading client). */ mimeType(): string | undefined; /** * Return a `Date` instance containing the time this file was last written to. */ lastModified(): Date | null | undefined; /** * Returns the JSON object of this file. */ toJSON(): { [key: string]: any; }; }