import { Thunk } from "@valuer/types"; import { DescriptorBase, DescriptorName } from "./descriptors"; export declare type Validator = keyof DescriptorBase; export declare type ValidatorWithoutDefaultValidation = Validator & ("value" | "equals" | "set" | "typeOf" | "instanceOf" | "length" | "composite"); export declare type ValidatorWithDefaultValidation = Exclude; export declare type ValidatorString = Validator & ("typeOf" | "number" | "spectrum" | "kind"); export declare type ValidatorStringCustom = Exclude; export declare type ValidatorNonString = Exclude; export declare type ValidatorFailure = string; export declare type Validation = DescriptorBase[V]; export declare type ValidationString = DescriptorBase[V]; export declare type ValidationNonString = DescriptorBase[V]; export declare type ValidationSole = DescriptorName | Thunk | ValidationString | Validation;