import ValidationContext from '../ValidationContext';
import Constraints from './Constraints';
declare class Size extends Constraints {
    message?: string;
    /**
     * 当前元素必须大于等于 min
     */
    min?: number;
    /**
     * 当前元素必须小于等于 max
     */
    max?: number;
    private getSize;
    isValid(value: any, context: ValidationContext): boolean;
}
/**
 * 验证配置元素的区间范围
 *
 * 支持的类型:
 * - `String`
 * - `Array`
 * - `Map`
 * - `Set`
 * - `TypedArray`
 *
 * `null` 或者 `undefined` 则忽略验证
 */
declare const _default: {
    (options: import("../../servlets/annotations/Target").CreateOptions<typeof Size>): (target: Object, name: string, p?: number) => any;
    (target: {
        [x: string]: any;
    }, propertyKey: string): any;
    (target: {
        [x: string]: any;
    }, propertyKey: string, parameterIndex: number): any;
} & import("../../servlets/annotations/annotation/type").LinkAnnotationType<typeof Size> & typeof Size;
export default _default;
