1 | import { PipeTransform } from '../../interfaces/features/pipe-transform.interface';
|
2 | import { FileValidator } from './file-validator.interface';
|
3 | import { ParseFileOptions } from './parse-file-options.interface';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 | export declare class ParseFilePipe implements PipeTransform<any> {
|
15 | protected exceptionFactory: (error: string) => any;
|
16 | private readonly validators;
|
17 | private readonly fileIsRequired;
|
18 | constructor(options?: ParseFileOptions);
|
19 | transform(value: any): Promise<any>;
|
20 | private validateFilesOrFile;
|
21 | private thereAreNoFilesIn;
|
22 | protected validate(file: any): Promise<any>;
|
23 | private validateOrThrow;
|
24 | /**
|
25 | * @returns list of validators used in this pipe.
|
26 | */
|
27 | getValidators(): FileValidator<Record<string, any>, import("./interfaces").IFile>[];
|
28 | }
|