UNPKG

679 BTypeScriptView Raw
1import { FileTypeValidatorOptions } from './file-type.validator';
2import { FileValidator } from './file-validator.interface';
3import { MaxFileSizeValidatorOptions } from './max-file-size.validator';
4import { ParseFileOptions } from './parse-file-options.interface';
5import { ParseFilePipe } from './parse-file.pipe';
6/**
7 * @publicApi
8 */
9export declare class ParseFilePipeBuilder {
10 private validators;
11 addMaxSizeValidator(options: MaxFileSizeValidatorOptions): this;
12 addFileTypeValidator(options: FileTypeValidatorOptions): this;
13 addValidator(validator: FileValidator): this;
14 build(additionalOptions?: Omit<ParseFileOptions, 'validators'>): ParseFilePipe;
15}