UNPKG

543 BTypeScriptView Raw
1import { StateArguments } from './types';
2export interface StateResult {
3 res: string;
4 errors: string[] | null;
5}
6export declare type SubValidator = (value: string, ...rest: string[]) => StateResult;
7export interface StateParamType {
8 subValidators?: Record<string, SubValidator>;
9 validate(value: any, args: StateArguments, resolveParam: any, validateDefinition: boolean, validateValue: boolean): StateResult;
10}
11export declare const systemValidators: Record<string, StateParamType>;
12//# sourceMappingURL=state-validators.d.ts.map
\No newline at end of file