import { MessageFunctionType, Result } from '../types'; export interface IsByteLengthErrors { TARGET_ARGUMENT_NOT_A_STRING: MessageFunctionType; MIN_NOT_NON_NEGATIVE_FINITE: MessageFunctionType; MIN_NOT_LESS_THAN_OR_EQUAL_TO_MAX: MessageFunctionType; } export declare const IS_BYTE_LENGTH_ERRORS: IsByteLengthErrors; /** * IsByteLength Options. */ export interface IsByteLengthOptions { min?: number; max?: number; } /** * Checks whether the `target` string's length (in UTF-8 bytes) * falls in the defined range. * * If the `max` option is undefined, it is set to `Infinity`. * * ### Example * ``` * expect(isByteLength('abc', {min: 2, max: 3}).value).toBeTruthy() * ``` * * @param target The target string * @param options The option parameters containing the min and max length of the string */ export declare function isByteLength(target: string, options?: IsByteLengthOptions): Result;