import { TReferenceProps } from '../../..'; import { IStringProps, TStringValidatorResult } from '../_types'; export interface IIsLengthProps { /** * Minimum length of the string. */ min?: number; /** * Delta added to `min` (eg: you have a `min` of `10` and a `minDelta` of `5`, then the minimal length of the string will be `15`). You can also use negative value. This property is useful when you are using refs. */ minDelta?: number; /** * Whether the minimal value should be accepted. * * @default true */ minIncluded?: boolean; /** * Maximum length of the string. */ max?: number; /** * Delta added to `max` (eg: you have a `max` of `10` and a `maxDelta` of `5`, then the maximal length of the string will be `15`). You can also use negative value. This property is useful when you are using refs. */ maxDelta?: number; /** * Whether the maximal value should be accepted. * * @default true */ maxIncluded?: boolean; } /** * Check if the string corresponds to the length constraints. */ export declare const isLength: (props?: TReferenceProps & IStringProps) => TStringValidatorResult;