export interface UploadValidationOptions { /** Maximum accepted file size in bytes. Larger files → 413. */ maxSize?: number; /** Allowed MIME types (exact match). Others → 415. */ mimeTypes?: string[]; /** When true (default), a missing file throws 400. */ required?: boolean; } /** * Inject a single uploaded file from a `multipart/form-data` request. * * ```ts * @Post('avatar') * upload(@UploadedFile('avatar', { maxSize: 5_000_000, mimeTypes: ['image/png'] }) file: UploadedFileHandle) {} * ``` * * When `field` is omitted the first file in the form is used. Violations throw * `PayloadTooLargeException` (413) / `UnsupportedMediaTypeException` (415); a * missing required file throws 400. */ export declare const UploadedFile: (field?: string, options?: UploadValidationOptions) => ParameterDecorator; /** * Inject every uploaded file from a `multipart/form-data` request as an array. * * ```ts * @Post('gallery') * upload(@UploadedFiles({ maxSize: 5_000_000 }) files: UploadedFileHandle[]) {} * ``` */ export declare const UploadedFiles: (options?: UploadValidationOptions) => ParameterDecorator; //# sourceMappingURL=uploads.d.ts.map