import { Struct } from './struct'; /** * Augment a string or array struct to constrain its length to being between a * minimum and maximum size. */ export declare function length(S: Struct, min: number, max: number): Struct; /** * Refine a string struct to match a specific regexp pattern. */ export declare function pattern(S: Struct, regexp: RegExp): Struct; /** * Augment a `Struct` to add an additional refinement to the validation. */ export declare function refinement(struct: Struct, type: string, refiner: Struct['refiner']): Struct;