1 | import { Struct, Refiner } from '../struct.js';
|
2 |
|
3 |
|
4 |
|
5 | export declare function empty<T extends string | any[] | Map<any, any> | Set<any>, S extends any>(struct: Struct<T, S>): Struct<T, S>;
|
6 |
|
7 |
|
8 |
|
9 | export declare function max<T extends number | Date, S extends any>(struct: Struct<T, S>, threshold: T, options?: {
|
10 | exclusive?: boolean;
|
11 | }): Struct<T, S>;
|
12 |
|
13 |
|
14 |
|
15 | export declare function min<T extends number | Date, S extends any>(struct: Struct<T, S>, threshold: T, options?: {
|
16 | exclusive?: boolean;
|
17 | }): Struct<T, S>;
|
18 |
|
19 |
|
20 |
|
21 | export declare function nonempty<T extends string | any[] | Map<any, any> | Set<any>, S extends any>(struct: Struct<T, S>): Struct<T, S>;
|
22 |
|
23 |
|
24 |
|
25 | export declare function pattern<T extends string, S extends any>(struct: Struct<T, S>, regexp: RegExp): Struct<T, S>;
|
26 |
|
27 |
|
28 |
|
29 | export declare function size<T extends string | number | Date | any[] | Map<any, any> | Set<any>, S extends any>(struct: Struct<T, S>, min: number, max?: number): Struct<T, S>;
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function refine<T, S>(struct: Struct<T, S>, name: string, refiner: Refiner<T>): Struct<T, S>;
|
38 |
|
\ | No newline at end of file |