import * as ArrayLikeCheck from "./array-like"; import * as MixedCheck from "./generic/mixed"; export declare enum StringErrorCode { NOT_STRING = "NOT_STRING", } export declare function checkString(mixed: any): undefined | StringErrorCode; export declare function checkStringPredicate(mixed: any, predicate: (str: string) => undefined | ErrorCodeT): undefined | StringErrorCode | ErrorCodeT; export declare type MinLengthErrorCodeType = StringErrorCode | ArrayLikeCheck.MinLengthErrorCodeType; export declare function checkMinLength(mixed: any, min: number): undefined | MinLengthErrorCodeType; export declare type MaxLengthErrorCodeType = StringErrorCode | ArrayLikeCheck.MaxLengthErrorCodeType; export declare function checkMaxLength(mixed: any, max: number): undefined | MaxLengthErrorCodeType; export declare type LengthErrorCodeType = StringErrorCode | ArrayLikeCheck.LengthErrorCodeType; export declare function checkLength(mixed: any, args: { min?: number; max?: number; }): undefined | LengthErrorCodeType; export declare type NonEmptyErrorCodeType = StringErrorCode | ArrayLikeCheck.NonEmptyErrorCodeType; export declare function checkNonEmpty(mixed: any): undefined | NonEmptyErrorCodeType; export declare type ContainsErrorCodeType = StringErrorCode | ArrayLikeCheck.ContainsErrorCodeType; export declare function checkContains(mixed: any, x: string): undefined | ContainsErrorCodeType; export declare type NoDuplicateErrorCodeType = StringErrorCode | ArrayLikeCheck.NoDuplicateErrorCodeType; export declare function checkNoDuplicate(mixed: any): undefined | NoDuplicateErrorCodeType; export declare enum NotAllWhitespaceErrorCode { IS_ALL_WHITESPACE = "IS_ALL_WHITESPACE", } export declare function checkNotAllWhitespace(mixed: any): undefined | StringErrorCode | NotAllWhitespaceErrorCode; export declare function checkNonEmptyAndNotAllWhitespace(mixed: any): undefined | StringErrorCode | NonEmptyErrorCodeType | NotAllWhitespaceErrorCode; export declare enum MatchErrorCode { DOES_NOT_MATCH = "DOES_NOT_MATCH", } export declare function checkMatch(mixed: any, regex: RegExp): undefined | StringErrorCode | MatchErrorCode; export declare enum EmailErrorCode { NOT_EMAIL = "NOT_EMAIL", } export declare function checkEmail(mixed: any): undefined | StringErrorCode | EmailErrorCode; export declare type NotOneOfErrorTypeCode = StringErrorCode | MixedCheck.NotOneOfErrorCode; export declare function checkNotOneOf(mixed: any, arr: T[]): undefined | NotOneOfErrorTypeCode; export declare enum Base64ErrorCode { NOT_BASE64 = "NOT_BASE64", INVALID_BASE64 = "INVALID_BASE64", } export declare function checkBase64(mixed: any): undefined | StringErrorCode | Base64ErrorCode; export declare enum JsonErrorCode { INVALID_JSON = "INVALID_JSON", } export declare function checkJson(mixed: any): undefined | StringErrorCode | JsonErrorCode;