/// import { MultipartFile } from "@fastify/multipart"; export declare class UploadedFile { private readonly fileData; /** * File buffered content */ private bufferedFileContent?; /** * Upload File Hash */ hash: string; /** * Save path for the file */ protected savePath: string; /** * Determine if file is saved */ protected isSaved: boolean; /** * Constructor */ constructor(fileData: MultipartFile); /** * Get file name */ get name(): string; /** * Get file mime type */ get mimeType(): any; /** * Get file extension */ get extension(): string; /** * Get file size in bytes */ size(): Promise; /** * Get file buffer */ buffer(): Promise; /** * Check if file is an image */ get isImage(): any; /** * Get file width and height */ dimensions(): Promise<{ width: any; height: any; }>; /** * Save file to the given path */ saveTo(path: string): Promise; /** * Save the file to the given path with the given name */ saveAs(path: string, name: string): Promise; /** * Save the file to the given path with random generated name */ save(path: string): Promise; /** * Get save path for the given path and file name */ getSavePath(path: string, fileName: string): string; } //# sourceMappingURL=UploadedFile.d.ts.map