import type { Context } from '../context.js'; export interface UploadOptions { limits?: { fileSize?: number; files?: number; fields?: number; }; preservePath?: boolean; defCharset?: string; defParamCharset?: string; allowedTypes?: string[]; allowedExtensions?: string[]; scanForMalware?: boolean; quarantinePath?: string; clamavConfig?: { clamdscan?: { host?: string; port?: number; timeout?: number; }; preference?: string; }; rateLimit?: { windowMs: number; maxUploads: number; }; secureFilename?: boolean; } export declare function upload(options?: UploadOptions): (ctx: Context, next: () => Promise) => Promise; export declare function single(fieldName: string): (ctx: Context, next: () => Promise) => Promise; export declare function array(fieldName: string, maxCount?: number): (ctx: Context, next: () => Promise) => Promise; export declare function fields(fields: string[]): (ctx: Context, next: () => Promise) => Promise; //# sourceMappingURL=upload.d.ts.map