import { HonoRequest } from 'hono'; import { StorageFile, Storage } from './storage'; export interface DiskStorageFile extends StorageFile { dest: string; filename: string; path: string; } type DiskStorageOptionHandler = ((file: File, req: HonoRequest) => Promise | string) | string; export interface DiskStorageOptions { dest?: DiskStorageOptionHandler; filename?: DiskStorageOptionHandler; removeAfter?: boolean; } export declare class DiskStorage implements Storage { readonly options?: DiskStorageOptions; constructor(options?: DiskStorageOptions); handleFile(file: File, req: HonoRequest, fieldName: string): Promise<{ size: number; dest: string; filename: string; originalFilename: string; path: string; mimetype: string; encoding: string; fieldName: string; uploadedAt: string; }>; removeFile(file: DiskStorageFile, force?: boolean): Promise; protected getFilename(file: File, req: HonoRequest, obj?: DiskStorageOptionHandler): Promise; protected getFileDestination(file: File, req: HonoRequest, obj?: DiskStorageOptionHandler): Promise; } export {};