import * as NumberCheck from "./number"; import * as FunctionCheck from "./function"; export declare enum ArrayLikeErrorCode { IS_NULL = "IS_NULL", IS_UNDEFINED = "IS_UNDEFINED", NO_LENGTH_PROPERTY = "NO_LENGTH_PROPERTY", NO_INDEX_OF_PROPERTY = "NO_INDEX_OF_PROPERTY", } export declare type ArrayLikeErrorCodeType = (ArrayLikeErrorCode | { index: number | string; error: (NumberCheck.NaturalNumberErrorCodeType | FunctionCheck.FunctionErrorCode); }); export declare function checkArrayLike(mixed: any): undefined | ArrayLikeErrorCodeType; export declare function checkArrayLikePredicate(mixed: any, predicate: (arr: { [index: number]: any; length: number; indexOf: (item: any) => number; }) => undefined | ErrorCodeT): undefined | ArrayLikeErrorCodeType | ErrorCodeT; export declare enum MinLengthErrorCode { SHORTER_THAN_MIN = "SHORTER_THAN_MIN", } export declare type MinLengthErrorCodeType = ArrayLikeErrorCodeType | MinLengthErrorCode; export declare function checkMinLength(mixed: any, min: number): undefined | MinLengthErrorCodeType; export declare enum MaxLengthErrorCode { LONGER_THAN_MAX = "LONGER_THAN_MAX", } export declare type MaxLengthErrorCodeType = ArrayLikeErrorCodeType | MaxLengthErrorCode; export declare function checkMaxLength(mixed: any, max: number): undefined | MaxLengthErrorCodeType; export declare type LengthErrorCodeType = { forcedArg: any; error: MinLengthErrorCodeType | MaxLengthErrorCodeType; }; export declare function checkLength(mixed: any, args: { min?: number; max?: number; }): undefined | LengthErrorCodeType; export declare enum NonEmptyErrorCode { IS_EMPTY = "IS_EMPTY", } export declare type NonEmptyErrorCodeType = ArrayLikeErrorCodeType | NonEmptyErrorCode; export declare function checkNonEmpty(mixed: any): undefined | NonEmptyErrorCodeType; export declare enum ContainsErrorCode { DOES_NOT_CONTAIN = "DOES_NOT_CONTAIN", } export declare type ContainsErrorCodeType = ArrayLikeErrorCodeType | ContainsErrorCode; export declare function checkContains(mixed: any, x: any): undefined | ContainsErrorCodeType; export declare enum NoDuplicateErrorCode { IS_DUPLICATE = "IS_DUPLICATE", } export declare type NoDuplicateErrorCodeType = (ArrayLikeErrorCodeType | { index: number | string; error: NoDuplicateErrorCode.IS_DUPLICATE; }); export declare function checkNoDuplicate(mixed: any): undefined | NoDuplicateErrorCodeType;