import { BaseValidator } from './base'; import type { FileLike, FileValidatorType, ValidationNames } from '../types/index'; /** Factory for chaining: `v.file().required().image().maxBytes(2_000_000)`. */ export declare function file(): FileValidator; /** * Validator for `UploadedFile`-shaped values — typically what * `request.file('avatar')` returns. Composable like every other * `v.()` builder; chain `.image()`, `.mimeTypes()`, `.maxBytes()`, * etc. to add rules. * * @example * ```ts * schema.file().required().image().maxBytes(2 * 1024 * 1024) * ``` */ export declare class FileValidator extends BaseValidator implements FileValidatorType { name: ValidationNames; constructor(); mimeTypes(types: string[]): this; image(): this; maxBytes(max: number): this; minBytes(min: number): this; extensions(exts: string[]): this; custom(fn: (value: FileLike) => boolean, message: string): this; }