nhb-toolbox 4.10.82 → 4.10.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -22,6 +22,13 @@ interface RandomIdOptions {
22
22
  /** Specifies the case for the random alphanumeric string. Default is `null`. */
23
23
  caseOption?: 'upper' | 'lower' | null;
24
24
  }
25
+ /** - Options for generating anagrams. */
26
+ interface AnagramOptions {
27
+ /** Limit the anagrams output. Default is `100`. */
28
+ limit?: number | 'all';
29
+ /** Whether to lookup in the dictionary. Default is `false`. */
30
+ validWords?: boolean;
31
+ }
25
32
  /** - Case formats for converting a string */
26
33
  type CaseFormat = 'camelCase' | 'snake_case' | 'kebab-case' | 'PascalCase' | 'Title Case' | 'UPPERCASE' | 'lowercase';
27
34
  /** Options for masking a string. */
@@ -257,6 +264,10 @@ type NormalPrimitiveKey<T> = {
257
264
  type OwnKeys<T> = {
258
265
  [K in keyof T]: {} extends Pick<T, K> ? never : K;
259
266
  }[keyof T];
267
+ /** Extract primitive (string, number or boolean) key(s) from an object */
268
+ type NonNullishPrimitiveKey<T> = {
269
+ [K in keyof T]: T[K] extends string | number | boolean ? K : never;
270
+ }[keyof T];
260
271
  /** Falsy primitive type */
261
272
  type FalsyPrimitive = false | 0 | '' | null | undefined;
262
273
  /** A generic class constructor */
@@ -769,6 +780,12 @@ interface ConvertOptions {
769
780
  /** If true, bypasses the cache and fetches fresh rate. */
770
781
  forceRefresh?: boolean;
771
782
  }
783
+ interface FrankFurter {
784
+ amount: number;
785
+ base: CurrencyCode;
786
+ date: string;
787
+ rates: Record<CurrencyCode, number>;
788
+ }
772
789
  /** * Options to calculate what percentage a `part` is of a `total`. */
773
790
  interface GetPercentOptions {
774
791
  /** Mode to calculate percentage from `part` and `total` */
@@ -843,6 +860,8 @@ type UnitNumberMethods = {
843
860
  }[keyof typeof Unit];
844
861
  /** - Short forms of units */
845
862
  type UnitKey = keyof typeof UNITS;
863
+ /** - Labels for the units */
864
+ type UnitLabel = (typeof UNITS)[UnitKey];
846
865
  /** - Prefixes for SI units */
847
866
  type SIPrefix = keyof typeof PREFIX_MULTIPLIERS;
848
867
 
@@ -1617,12 +1636,72 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number}
1617
1636
  * * Format: `hsla(H, S%, L%, A)`
1618
1637
  */
1619
1638
  type HSLA = `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})`;
1639
+ /** * Union type representing a color in Hex6, RGB, or HSL format. */
1640
+ type ColorTypeSolid = Hex6 | RGB | HSL;
1641
+ /** * Union type representing a color in Hex8, RGBA, or HSLA format. */
1642
+ type ColorTypeAlpha = Hex8 | RGBA | HSLA;
1620
1643
  /** * Union of Alpha & Solid `Hex`, `RGB` and `HSL` */
1621
1644
  type ColorType = Hex | Hex6 | RGB | HSL | Hex8 | RGBA | HSLA;
1645
+ /** - Colors Object that includes `Hex8`, `RGBA` and `HSLA` formats of the same color. */
1646
+ interface SolidColors {
1647
+ /** Represents a normal Hex color */
1648
+ hex: Hex6;
1649
+ /** Represents a normal RGB color */
1650
+ rgb: RGB;
1651
+ /** Represents a normal HSL color */
1652
+ hsl: HSL;
1653
+ }
1654
+ /** - Colors Object that includes `Hex`, `RGB` and `HSL` formats of the same color. */
1655
+ interface AlphaColors {
1656
+ /** Represents a Hex color with alpha channel */
1657
+ hex8: Hex8;
1658
+ /** Represents a RGBA color with alpha channel */
1659
+ rgba: RGBA;
1660
+ /** Represents a HSLA color with alpha channel */
1661
+ hsla: HSLA;
1662
+ }
1622
1663
  /** * Represents a tuple of three numerical values corresponding to RGB or HSL color components. */
1623
1664
  type SolidValues = [number, number, number];
1624
1665
  /** * Represents a tuple of four numerical values corresponding to RGBA or HSLA color components. */
1625
1666
  type AlphaValues = [number, number, number, number];
1667
+ /**
1668
+ * * Represents the converted color formats for a given color type.
1669
+ *
1670
+ * - If the input is `Hex`, the output includes `RGB` and `HSL`.
1671
+ * - If the input is `RGB`, the output includes `Hex` and `HSL`.
1672
+ * - If the input is `HSL`, the output includes `Hex` and `RGB`.
1673
+ */
1674
+ interface ConvertedColors<T extends ColorType> extends Record<string, ColorType> {
1675
+ /** - The Hex representation (excluded if the input is already Hex). */
1676
+ hex: T extends Hex6 | ColorTypeAlpha ? never : Hex6;
1677
+ /** - The RGB representation (excluded if the input is already RGB). */
1678
+ rgb: T extends RGB | ColorTypeAlpha ? never : RGB;
1679
+ /** - The HSL representation (excluded if the input is already HSL). */
1680
+ hsl: T extends HSL | ColorTypeAlpha ? never : HSL;
1681
+ /** - The Hex8 representation with opacity (excluded if the input is already Hex8). */
1682
+ hex8: T extends Hex8 | ColorTypeSolid ? never : Hex8;
1683
+ /** - The RGBA representation (excluded if the input is already RGBA). */
1684
+ rgba: T extends RGBA | ColorTypeSolid ? never : RGBA;
1685
+ /** - The HSLA representation (excluded if the input is already HSLA). */
1686
+ hsla: T extends HSLA | ColorTypeSolid ? never : HSLA;
1687
+ }
1688
+ /** Represents an alpha value between 0 and 1 */
1689
+ type AlphaValue = Branded<number, 'AlphaValue'>;
1690
+ /** An Object representing all the colors from `Color` constructor. */
1691
+ interface Colors {
1692
+ /** - `Hex` color (e.g., `#ff5733`) */
1693
+ hex: Hex6;
1694
+ /** - `Hex8` color (Hex with opacity, e.g., `#ff573380`) */
1695
+ hex8: Hex8;
1696
+ /** - `RGB` color (e.g., `rgb(255, 87, 51)`) */
1697
+ rgb: RGB;
1698
+ /** - `RGBA` color (e.g., `rgba(255, 87, 51, 1)`) */
1699
+ rgba: RGBA;
1700
+ /** - `HSL` color (e.g., `hsl(14, 100%, 60%)`) */
1701
+ hsl: HSL;
1702
+ /** - `HSLA` color (e.g., `hsla(14, 100%, 60%, 1)`) */
1703
+ hsla: HSLA;
1704
+ }
1626
1705
  /** Analogous colors */
1627
1706
  type Analogous = [Color, Color, Color];
1628
1707
  /** Triad color */
@@ -3008,6 +3087,8 @@ declare class Chronos {
3008
3087
  type Hours = '00' | '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23';
3009
3088
  /** - Minute in numeric string from `00` to `59` */
3010
3089
  type Minutes = '00' | '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '38' | '39' | '40' | '41' | '42' | '43' | '44' | '45' | '46' | '47' | '48' | '49' | '50' | '51' | '52' | '53' | '54' | '55' | '56' | '57' | '58' | '59';
3090
+ /** - Second in numeric string from `00` to `59` */
3091
+ type Seconds = Minutes;
3011
3092
  /** - Time in "HH:MM" format. */
3012
3093
  type Time = `${Hours}:${Minutes}`;
3013
3094
  /** - Configuration options for greeting. */
@@ -3060,6 +3141,8 @@ type Second = (typeof SECOND_FORMATS)[number];
3060
3141
  type Millisecond = (typeof MILLISECOND_FORMATS)[number];
3061
3142
  /** Time formats in either capital or lowercase `am/pm` format */
3062
3143
  type TimeFormats = (typeof TIME_FORMATS)[number];
3144
+ /** Standard union formats for `Chronos`. */
3145
+ type ChronosFormat = Year | Month | Day | MonthDate | Hour | Minute | Second | Millisecond | TimeFormats;
3063
3146
  /** Standard date formats. */
3064
3147
  type DateParts = `${MonthDate} ${Exclude<Month, 'M' | 'MM'>}` | `${Exclude<Month, 'M' | 'MM'>} ${MonthDate}` | `${Day}, ${MonthDate} ${Exclude<Month, 'M' | 'MM'>}` | `${Day}, ${Exclude<Month, 'M' | 'MM'>} ${MonthDate}` | `${Exclude<Month, 'M' | 'MM'>} ${MonthDate}, ${Year}` | `${MonthDate} ${Exclude<Month, 'M' | 'MM'>}, ${Year}` | `${Exclude<Month, 'M' | 'MM'>} ${MonthDate} ${Year}` | `${MonthDate} ${Exclude<Month, 'M' | 'MM'>} ${Year}` | `${Day}, ${Exclude<Month, 'M' | 'MM'>} ${MonthDate}, ${Year}` | `${Day}, ${MonthDate} ${Exclude<Month, 'M' | 'MM'>}, ${Year}` | `${Day}, ${Exclude<Month, 'M' | 'MM'>} ${MonthDate} ${Year}` | `${Day}, ${MonthDate} ${Exclude<Month, 'M' | 'MM'>} ${Year}` | `${Exclude<MonthDate, 'Do'>}.${Exclude<Month, 'mmm' | 'mmmm'>}.${Year}` | `${Year}.${Exclude<Month, 'mmm' | 'mmmm'>}.${Exclude<MonthDate, 'Do'>}` | `${Exclude<MonthDate, 'Do'>}/${Exclude<Month, 'mmm' | 'mmmm'>}/${Year}` | `${Exclude<MonthDate, 'Do'>}-${Exclude<Month, 'mmm' | 'mmmm'>}-${Year}` | `${Exclude<Month, 'mmm' | 'mmmm'>}/${Exclude<MonthDate, 'Do'>}/${Year}` | `${Exclude<Month, 'mmm' | 'mmmm'>}-${Exclude<MonthDate, 'Do'>}-${Year}` | `${Year}-${Exclude<Month, 'mmm' | 'mmmm'>}-${Exclude<MonthDate, 'Do'>}` | `${Year}/${Exclude<Month, 'mmm' | 'mmmm'>}/${Exclude<MonthDate, 'Do'>}` | `${Year}-${Exclude<MonthDate, 'Do'>}-${Exclude<Month, 'mmm' | 'mmmm'>}` | `${Year}/${Exclude<MonthDate, 'Do'>}/${Exclude<Month, 'mmm' | 'mmmm'>}`;
3065
3148
  /** Standard Time Formats */
@@ -3488,6 +3571,12 @@ type QueryObjectValue = NormalPrimitive | NormalPrimitive[] | QueryObject;
3488
3571
  type QueryObject = {
3489
3572
  [key: string]: QueryObjectValue;
3490
3573
  };
3574
+ /** - Object type with string or number or boolean as value for each key. */
3575
+ type GenericObjectPrimitive = Record<string, string | number | boolean>;
3576
+ /** - Dot-notation keys for nested objects with unknown value (including optional properties) */
3577
+ type DotNotationKeyStrict<T> = T extends AdvancedTypes ? never : T extends StrictObject ? HasMethods<T> extends true ? never : {
3578
+ [K in keyof T & string]: NonNullable<T[K]> extends (StrictObject) ? `${K}` | `${K}.${DotNotationKey<NonNullable<T[K]>>}` : `${K}`;
3579
+ }[keyof T & string] : never;
3491
3580
  /** - Dot-notation keys for nested objects with `any` value (including optional properties) */
3492
3581
  type DotNotationKey<T> = T extends AdvancedTypes ? never : T extends GenericObject ? HasMethods<T> extends true ? never : {
3493
3582
  [K in keyof T & string]: NonNullable<T[K]> extends (GenericObject) ? `${K}` | `${K}.${DotNotationKey<NonNullable<T[K]>>}` : `${K}`;
@@ -3609,6 +3698,10 @@ type FirstFieldKey<T extends GenericObject, K1 extends string = 'value', K2 exte
3609
3698
  type FirstFieldValue<T extends GenericObject, K1 extends string = 'value', K2 extends string = 'label', V extends boolean = false> = V extends true ? FirstFieldKey<T, K1, K2, V> extends (Exclude<FirstFieldKey<T, K1, K2, V>, number>) ? string : number : string;
3610
3699
  /** Type of values for the option fields */
3611
3700
  type FieldValue<P extends K1 | K2, T extends GenericObject, K1 extends string = 'value', K2 extends string = 'label', V extends boolean = false> = P extends K1 ? FirstFieldValue<T, K1, K2, V> : string;
3701
+ /** Type of an option in `OptionsArray` */
3702
+ type Option<T extends GenericObject, K1 extends string = 'value', K2 extends string = 'label', V extends boolean = false> = {
3703
+ [P in K1 | K2]: FieldValue<P, T, K1, K2, V>;
3704
+ };
3612
3705
  /** * Option for sorting order. */
3613
3706
  interface OrderOption {
3614
3707
  /**
@@ -3623,6 +3716,8 @@ interface SortByOption<T extends GenericObject> extends OrderOption {
3623
3716
  /** The field by which to sort the objects in the array. */
3624
3717
  sortByField: NestedPrimitiveKey<T>;
3625
3718
  }
3719
+ /** * Options for sorting array. */
3720
+ type SortOptions<T> = T extends GenericObject ? SortByOption<T> : OrderOption;
3626
3721
  /** Optional settings to configure comparison behavior. */
3627
3722
  interface SortNature {
3628
3723
  /** If true, compares string chunks without case sensitivity. Defaults to `true`. */
@@ -4883,4 +4978,4 @@ declare function isEnvironment(env: string): boolean;
4883
4978
  */
4884
4979
  declare function isNumericString(value: unknown): value is `${number}`;
4885
4980
 
4886
- export { Chronos, Chronos as Chronus, Color, Color as Colour, Currency, Finder, Paginator, Unit, Unit as UnitConverter, areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, getAverage as calculateAverage, calculateHCF as calculateGCD, calculateHCF, calculateLCM as calculateLCD, calculateLCM, calculatePercentage, capitalizeString, getOrdinal as cardinalToOrdinal, typedChronos as chronos, typedChronos as chronosjs, typedChronos as chronosts, typedChronos as chronus, typedChronos as chronusjs, typedChronos as chronusts, clampNumber, cloneObject, naturalSort as compareNaturally, naturalSort as compareSorter, convertArrayToString, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, createControlledFormData as convertIntoFormData, formatUTCOffset as convertMinutesToUTCOffset, formatCurrency as convertNumberToCurrency, getOrdinal as convertNumberToOrdinal, numberToWords as convertNumberToWords, convertObjectValues, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, convertStringCase, convertToDecimal, convertToDecimal as convertToFixed, getOrdinal as convertToOrdinal, convertToRomanNumerals, copyToClipboard, countInstanceMethods, countObjectFields, countStaticMethods, countWords, countWords as countWordsInString, createControlledFormData, createControlledFormData as createFormData, createOptionsArray, generateQueryParams as createQueryParams, debounceAction, deepParsePrimitives, isReturningPromise as doesReturnPromise, extractAlphaColorValues, getDuplicates as extractDuplicates, getDuplicates as extractDuplicatesFromArray, extractEmails, extractHourMinute, extractMinutesFromUTC, findMissingElements as extractMissingElements, extractNewFields, extractNumbersFromString as extractNumbers, extractNumbersFromString, extractSolidColorValues, extractTimeFromUTC, extractTimeFromUTC as extractTimeStringFromUTC, getTotalMinutes as extractTotalMinutesFromTime, extractURLs, extractUpdatedAndNewFields, extractUpdatedFields, fibonacciGenerator, filterArrayOfObjects, findMissingElements, findPrimeNumbers, flattenArray, flattenObjectDotNotation, flattenObjectKeyValue, formatCurrency, formatUnitWithPlural as formatNumberWithPluralUnit, generateQueryParams as formatQueryParams, formatUTCOffset, formatUnitWithPlural, formatUnitWithPlural as formatWithPlural, generateAnagrams, fibonacciGenerator as generateFibonacci, getGreeting as generateGreeting, generateQueryParams, generateRandomColorInHexRGB, generateRandomHSLColor, generateRandomID, getAverage, getAverage as getAverageOfNumbers, getClassDetails, getColorForInitial, getCurrentDateTime, getCurrentDateTime as getCurrentTime, getDuplicates, getDuplicates as getDuplicatesFromArray, getFibonacciSeries as getFibonacci, getFibonacciSeries as getFibonacciNumbers, getFibonacciSeries, getFibonacciSeriesMemo, getFromLocalStorage, getFromSessionStorage, getGreeting, getInstanceMethodNames, countInstanceMethods as getInstanceMethodsCount, getLastArrayElement, getLevenshteinDistance, getFibonacciSeriesMemo as getMemoizedFibonacci, getFibonacciSeriesMemo as getMemoizedFibonacciSeries, extractMinutesFromUTC as getMinutesFromUTC, findMissingElements as getMissingElements, getNthFibonacci, getNumbersInRange, getOrdinal, getOrdinal as getOrdinalNumber, findPrimeNumbers as getPrimeNumbers, getQueryParams, parseQueryString as getQueryStringAsObject, getRandomFloat as getRandomDecimal, getRandomFloat, getRandomNumber as getRandomInt, getRandomNumber, getStaticMethodNames, countStaticMethods as getStaticMethodsCount, sumNumbers as getSumOfNumbers, extractTimeFromUTC as getTimeStringFromUTC, getTotalMinutes, getTotalMinutes as getTotalMinutesFromTime, extractMinutesFromUTC as getTotalMinutesFromUTC, getGreeting as greet, convertToRomanNumerals as integerToRoman, isArray, isArrayOfType, isValidArray as isArrayWithLength, isBase64, isBigInt, isBoolean, isBrowser, isCamelCase, isCustomFile, isCustomFileArray, isDate, isDateLike, isDateString, isDeepEqual, isEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEnvironment, isError, isEven, isEven as isEvenNumber, isEnvironment as isExpectedNodeENV, isFalsy, isFibonacci, isFileArray, isFileList, isFileOrBlob, isFileUpload, isFunction, isIPAddress, isInteger, areInvalidNumbers as isInvalidNumber, isInvalidOrEmptyArray, isJSON, isJSON as isJSONObject, isKebabCase, isLeapYear, isMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNode, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNull, isNumber, areInvalidNumbers as isNumberInvalid, isNumericString, isObject, isEmptyObject as isObjectEmpty, isObjectWithKeys, isOdd, isOdd as isOddNumber, isOriginFileObj, isPalindrome, isFibonacci as isParOfFibonacci, isFibonacci as isParOfFibonacciSeries, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrime, isPrime as isPrimeNumber, isPrimitive, isPromise, isRegExp, isRegExp as isRegularExpression, isReturningPromise, isSet, isSnakeCase, isString, isSymbol, isTruthy, isURL, isUUID, isUndefined, isValidArray, isEmail as isValidEmail, isInvalidOrEmptyArray as isValidEmptyArray, isValidFormData, isJSON as isValidJSON, isMap as isValidMap, isNotEmptyObject as isValidObject, isSet as isValidSet, isValidTime, isValidTime as isValidTimeString, isURL as isValidURL, isValidUTCOffSet as isValidUTC, isValidUTCOffSet, getLevenshteinDistance as levenshteinDistance, maskString, mergeAndFlattenObjects, mergeObjects, formatUTCOffset as minutesToUTCOffset, moveArrayElement, naturalSort, naturalSort as naturalSortForString, normalizeString, getOrdinal as numberToOrdinal, convertToRomanNumerals as numberToRoman, numberToWords, convertToRomanNumerals as numericToRoman, parseFormData, parseJSON, parseJSON as parseJsonDeep, parseJsonToObject, extractNumbersFromString as parseNumbersFromText, parseObjectValues, deepParsePrimitives as parsePrimitivesDeep, parseQueryString, parseObjectValues as parseStringifiedObjectValues, pickFields, pickObjectFieldsByCondition as pickFieldsByCondition, pickFields as pickObjectFields, pickObjectFieldsByCondition, parseQueryString as queryStringToObject, remapFields, remapFields as remapObjectFields, removeDuplicatesFromArray as removeDuplicates, removeDuplicatesFromArray, removeFromLocalStorage, removeFromSessionStorage, replaceAllInString, reverseNumber, reverseString, rotateArray, roundNumber, roundToNearest as roundNumberToNearestInterval, roundNumber as roundToDecimal, roundToNearest, roundToNearest as roundToNearestInterval, sanitizeData, saveToLocalStorage, saveToSessionStorage, serializeForm, shuffleArray, slugifyString, smoothScrollTo, sortAnArray, splitArray, sumDigits, sumNumbers, sumNumbers as sumOfNumbers, throttleAction, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, toggleFullScreen, trimString, truncateString, updateQueryParam, countWords as wordCount };
4981
+ export { type AdvancedTypes, type AlphaColors, type AlphaValue, type AlphaValues, type AnagramOptions, type Analogous, type Any, type ApplyChangeOptions, type AsyncFunction, type Branded, type CSSColor, type CapitalizeOptions, type CaseFormat, Chronos, type ChronosFormat, type ChronosInput, type ChronosMethods, type ChronosObject, type ChronosStatics, Chronos as Chronus, type ClassDetails, Color, type ColorInput, type ColorInputArray, type ColorType, type ColorTypeAlpha, type ColorTypeSolid, type Colors, Color as Colour, type Constructor, type ConvertOptions, type ConvertedColors, type ConvertedDecimal, Currency, type CurrencyCode, type CustomFile, type DateParts, type Day, type DayPart, type DayPartConfig, type DecimalOptions, type DelayedFn, type DotNotationKey, type DotNotationKeyStrict, type FalsyPrimitive, type FieldValue, type FileError, type FileUpload, type FindOptions, Finder, type FirstFieldKey, type FirstFieldValue, type FlattenPartial, type Flattened, type FormDataConfigs, type FormatOptions, type FrankFurter, type FromMetaOptions, type GenericFn, type GenericObject, type GenericObjectPrimitive, type GetChangeOptions, type GetDifferenceOptions, type GetOriginalOptions, type GetPercentOptions, type GetValueOptions, type GreetingConfigs, type HSL, type HSLA, type HasMethods, type Hex, type Hex6, type Hex8, type Hour, type Hours, type InversePercentageOptions, type KeyForArray, type KeyForObject, type LocaleCode, type MaskOptions, type Millisecond, type Minute, type Minutes, type Month, type MonthDate, type NegativeUTCHour, type NestedKeyString, type NestedPrimitiveKey, type NonNullishPrimitiveKey, type NormalPrimitive, type NormalPrimitiveKey, type NumberType, type Numberified, type Numeric, type Option, type OptionsConfig, type OrderOption, type OriginFileObj, type OwnKeys, type PageListOptions, Paginator, type PaginatorMeta, type PaginatorOptions, type ParsedFormData, type PartialOrRequired, type Percent, type PercentageOptions, type PositiveUTCHour, type Primitive, type Quarter, type QueryObject, type QueryObjectValue, type QueryString, type RGB, type RGBA, type RandomIdOptions, type RandomNumberOptions, type RangeOptions, type RangedNumbers, type SIPrefix, type SanitizeOptions, type Second, type Seconds, type SerializedForm, type SolidColors, type SolidValues, type SortByOption, type SortNature, type SortOptions, type StrictFormat, type StrictObject, type Stringified, type SupportedCurrency, type Tetrad, type ThrottledFn, type Time, type TimeDuration, type TimeFormats, type TimeParts, type TimeUnit, type TimeZone, type Triad, type UTCMinute, type UTCOffSet, Unit, Unit as UnitConverter, type UnitKey, type UnitLabel, type UnitNumberMethods, type VoidFunction, type WithoutOrigin, type Year, type ZodiacSign, areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, getAverage as calculateAverage, calculateHCF as calculateGCD, calculateHCF, calculateLCM as calculateLCD, calculateLCM, calculatePercentage, capitalizeString, getOrdinal as cardinalToOrdinal, typedChronos as chronos, typedChronos as chronosjs, typedChronos as chronosts, typedChronos as chronus, typedChronos as chronusjs, typedChronos as chronusts, clampNumber, cloneObject, naturalSort as compareNaturally, naturalSort as compareSorter, convertArrayToString, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, createControlledFormData as convertIntoFormData, formatUTCOffset as convertMinutesToUTCOffset, formatCurrency as convertNumberToCurrency, getOrdinal as convertNumberToOrdinal, numberToWords as convertNumberToWords, convertObjectValues, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, convertStringCase, convertToDecimal, convertToDecimal as convertToFixed, getOrdinal as convertToOrdinal, convertToRomanNumerals, copyToClipboard, countInstanceMethods, countObjectFields, countStaticMethods, countWords, countWords as countWordsInString, createControlledFormData, createControlledFormData as createFormData, createOptionsArray, generateQueryParams as createQueryParams, debounceAction, deepParsePrimitives, isReturningPromise as doesReturnPromise, extractAlphaColorValues, getDuplicates as extractDuplicates, getDuplicates as extractDuplicatesFromArray, extractEmails, extractHourMinute, extractMinutesFromUTC, findMissingElements as extractMissingElements, extractNewFields, extractNumbersFromString as extractNumbers, extractNumbersFromString, extractSolidColorValues, extractTimeFromUTC, extractTimeFromUTC as extractTimeStringFromUTC, getTotalMinutes as extractTotalMinutesFromTime, extractURLs, extractUpdatedAndNewFields, extractUpdatedFields, fibonacciGenerator, filterArrayOfObjects, findMissingElements, findPrimeNumbers, flattenArray, flattenObjectDotNotation, flattenObjectKeyValue, formatCurrency, formatUnitWithPlural as formatNumberWithPluralUnit, generateQueryParams as formatQueryParams, formatUTCOffset, formatUnitWithPlural, formatUnitWithPlural as formatWithPlural, generateAnagrams, fibonacciGenerator as generateFibonacci, getGreeting as generateGreeting, generateQueryParams, generateRandomColorInHexRGB, generateRandomHSLColor, generateRandomID, getAverage, getAverage as getAverageOfNumbers, getClassDetails, getColorForInitial, getCurrentDateTime, getCurrentDateTime as getCurrentTime, getDuplicates, getDuplicates as getDuplicatesFromArray, getFibonacciSeries as getFibonacci, getFibonacciSeries as getFibonacciNumbers, getFibonacciSeries, getFibonacciSeriesMemo, getFromLocalStorage, getFromSessionStorage, getGreeting, getInstanceMethodNames, countInstanceMethods as getInstanceMethodsCount, getLastArrayElement, getLevenshteinDistance, getFibonacciSeriesMemo as getMemoizedFibonacci, getFibonacciSeriesMemo as getMemoizedFibonacciSeries, extractMinutesFromUTC as getMinutesFromUTC, findMissingElements as getMissingElements, getNthFibonacci, getNumbersInRange, getOrdinal, getOrdinal as getOrdinalNumber, findPrimeNumbers as getPrimeNumbers, getQueryParams, parseQueryString as getQueryStringAsObject, getRandomFloat as getRandomDecimal, getRandomFloat, getRandomNumber as getRandomInt, getRandomNumber, getStaticMethodNames, countStaticMethods as getStaticMethodsCount, sumNumbers as getSumOfNumbers, extractTimeFromUTC as getTimeStringFromUTC, getTotalMinutes, getTotalMinutes as getTotalMinutesFromTime, extractMinutesFromUTC as getTotalMinutesFromUTC, getGreeting as greet, convertToRomanNumerals as integerToRoman, isArray, isArrayOfType, isValidArray as isArrayWithLength, isBase64, isBigInt, isBoolean, isBrowser, isCamelCase, isCustomFile, isCustomFileArray, isDate, isDateLike, isDateString, isDeepEqual, isEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEnvironment, isError, isEven, isEven as isEvenNumber, isEnvironment as isExpectedNodeENV, isFalsy, isFibonacci, isFileArray, isFileList, isFileOrBlob, isFileUpload, isFunction, isIPAddress, isInteger, areInvalidNumbers as isInvalidNumber, isInvalidOrEmptyArray, isJSON, isJSON as isJSONObject, isKebabCase, isLeapYear, isMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNode, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNull, isNumber, areInvalidNumbers as isNumberInvalid, isNumericString, isObject, isEmptyObject as isObjectEmpty, isObjectWithKeys, isOdd, isOdd as isOddNumber, isOriginFileObj, isPalindrome, isFibonacci as isParOfFibonacci, isFibonacci as isParOfFibonacciSeries, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrime, isPrime as isPrimeNumber, isPrimitive, isPromise, isRegExp, isRegExp as isRegularExpression, isReturningPromise, isSet, isSnakeCase, isString, isSymbol, isTruthy, isURL, isUUID, isUndefined, isValidArray, isEmail as isValidEmail, isInvalidOrEmptyArray as isValidEmptyArray, isValidFormData, isJSON as isValidJSON, isMap as isValidMap, isNotEmptyObject as isValidObject, isSet as isValidSet, isValidTime, isValidTime as isValidTimeString, isURL as isValidURL, isValidUTCOffSet as isValidUTC, isValidUTCOffSet, getLevenshteinDistance as levenshteinDistance, maskString, mergeAndFlattenObjects, mergeObjects, formatUTCOffset as minutesToUTCOffset, moveArrayElement, naturalSort, naturalSort as naturalSortForString, normalizeString, getOrdinal as numberToOrdinal, convertToRomanNumerals as numberToRoman, numberToWords, convertToRomanNumerals as numericToRoman, parseFormData, parseJSON, parseJSON as parseJsonDeep, parseJsonToObject, extractNumbersFromString as parseNumbersFromText, parseObjectValues, deepParsePrimitives as parsePrimitivesDeep, parseQueryString, parseObjectValues as parseStringifiedObjectValues, pickFields, pickObjectFieldsByCondition as pickFieldsByCondition, pickFields as pickObjectFields, pickObjectFieldsByCondition, parseQueryString as queryStringToObject, remapFields, remapFields as remapObjectFields, removeDuplicatesFromArray as removeDuplicates, removeDuplicatesFromArray, removeFromLocalStorage, removeFromSessionStorage, replaceAllInString, reverseNumber, reverseString, rotateArray, roundNumber, roundToNearest as roundNumberToNearestInterval, roundNumber as roundToDecimal, roundToNearest, roundToNearest as roundToNearestInterval, sanitizeData, saveToLocalStorage, saveToSessionStorage, serializeForm, shuffleArray, slugifyString, smoothScrollTo, sortAnArray, splitArray, sumDigits, sumNumbers, sumNumbers as sumOfNumbers, throttleAction, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, toggleFullScreen, trimString, truncateString, updateQueryParam, countWords as wordCount };
package/dist/index.d.ts CHANGED
@@ -22,6 +22,13 @@ interface RandomIdOptions {
22
22
  /** Specifies the case for the random alphanumeric string. Default is `null`. */
23
23
  caseOption?: 'upper' | 'lower' | null;
24
24
  }
25
+ /** - Options for generating anagrams. */
26
+ interface AnagramOptions {
27
+ /** Limit the anagrams output. Default is `100`. */
28
+ limit?: number | 'all';
29
+ /** Whether to lookup in the dictionary. Default is `false`. */
30
+ validWords?: boolean;
31
+ }
25
32
  /** - Case formats for converting a string */
26
33
  type CaseFormat = 'camelCase' | 'snake_case' | 'kebab-case' | 'PascalCase' | 'Title Case' | 'UPPERCASE' | 'lowercase';
27
34
  /** Options for masking a string. */
@@ -257,6 +264,10 @@ type NormalPrimitiveKey<T> = {
257
264
  type OwnKeys<T> = {
258
265
  [K in keyof T]: {} extends Pick<T, K> ? never : K;
259
266
  }[keyof T];
267
+ /** Extract primitive (string, number or boolean) key(s) from an object */
268
+ type NonNullishPrimitiveKey<T> = {
269
+ [K in keyof T]: T[K] extends string | number | boolean ? K : never;
270
+ }[keyof T];
260
271
  /** Falsy primitive type */
261
272
  type FalsyPrimitive = false | 0 | '' | null | undefined;
262
273
  /** A generic class constructor */
@@ -769,6 +780,12 @@ interface ConvertOptions {
769
780
  /** If true, bypasses the cache and fetches fresh rate. */
770
781
  forceRefresh?: boolean;
771
782
  }
783
+ interface FrankFurter {
784
+ amount: number;
785
+ base: CurrencyCode;
786
+ date: string;
787
+ rates: Record<CurrencyCode, number>;
788
+ }
772
789
  /** * Options to calculate what percentage a `part` is of a `total`. */
773
790
  interface GetPercentOptions {
774
791
  /** Mode to calculate percentage from `part` and `total` */
@@ -843,6 +860,8 @@ type UnitNumberMethods = {
843
860
  }[keyof typeof Unit];
844
861
  /** - Short forms of units */
845
862
  type UnitKey = keyof typeof UNITS;
863
+ /** - Labels for the units */
864
+ type UnitLabel = (typeof UNITS)[UnitKey];
846
865
  /** - Prefixes for SI units */
847
866
  type SIPrefix = keyof typeof PREFIX_MULTIPLIERS;
848
867
 
@@ -1617,12 +1636,72 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number}
1617
1636
  * * Format: `hsla(H, S%, L%, A)`
1618
1637
  */
1619
1638
  type HSLA = `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})`;
1639
+ /** * Union type representing a color in Hex6, RGB, or HSL format. */
1640
+ type ColorTypeSolid = Hex6 | RGB | HSL;
1641
+ /** * Union type representing a color in Hex8, RGBA, or HSLA format. */
1642
+ type ColorTypeAlpha = Hex8 | RGBA | HSLA;
1620
1643
  /** * Union of Alpha & Solid `Hex`, `RGB` and `HSL` */
1621
1644
  type ColorType = Hex | Hex6 | RGB | HSL | Hex8 | RGBA | HSLA;
1645
+ /** - Colors Object that includes `Hex8`, `RGBA` and `HSLA` formats of the same color. */
1646
+ interface SolidColors {
1647
+ /** Represents a normal Hex color */
1648
+ hex: Hex6;
1649
+ /** Represents a normal RGB color */
1650
+ rgb: RGB;
1651
+ /** Represents a normal HSL color */
1652
+ hsl: HSL;
1653
+ }
1654
+ /** - Colors Object that includes `Hex`, `RGB` and `HSL` formats of the same color. */
1655
+ interface AlphaColors {
1656
+ /** Represents a Hex color with alpha channel */
1657
+ hex8: Hex8;
1658
+ /** Represents a RGBA color with alpha channel */
1659
+ rgba: RGBA;
1660
+ /** Represents a HSLA color with alpha channel */
1661
+ hsla: HSLA;
1662
+ }
1622
1663
  /** * Represents a tuple of three numerical values corresponding to RGB or HSL color components. */
1623
1664
  type SolidValues = [number, number, number];
1624
1665
  /** * Represents a tuple of four numerical values corresponding to RGBA or HSLA color components. */
1625
1666
  type AlphaValues = [number, number, number, number];
1667
+ /**
1668
+ * * Represents the converted color formats for a given color type.
1669
+ *
1670
+ * - If the input is `Hex`, the output includes `RGB` and `HSL`.
1671
+ * - If the input is `RGB`, the output includes `Hex` and `HSL`.
1672
+ * - If the input is `HSL`, the output includes `Hex` and `RGB`.
1673
+ */
1674
+ interface ConvertedColors<T extends ColorType> extends Record<string, ColorType> {
1675
+ /** - The Hex representation (excluded if the input is already Hex). */
1676
+ hex: T extends Hex6 | ColorTypeAlpha ? never : Hex6;
1677
+ /** - The RGB representation (excluded if the input is already RGB). */
1678
+ rgb: T extends RGB | ColorTypeAlpha ? never : RGB;
1679
+ /** - The HSL representation (excluded if the input is already HSL). */
1680
+ hsl: T extends HSL | ColorTypeAlpha ? never : HSL;
1681
+ /** - The Hex8 representation with opacity (excluded if the input is already Hex8). */
1682
+ hex8: T extends Hex8 | ColorTypeSolid ? never : Hex8;
1683
+ /** - The RGBA representation (excluded if the input is already RGBA). */
1684
+ rgba: T extends RGBA | ColorTypeSolid ? never : RGBA;
1685
+ /** - The HSLA representation (excluded if the input is already HSLA). */
1686
+ hsla: T extends HSLA | ColorTypeSolid ? never : HSLA;
1687
+ }
1688
+ /** Represents an alpha value between 0 and 1 */
1689
+ type AlphaValue = Branded<number, 'AlphaValue'>;
1690
+ /** An Object representing all the colors from `Color` constructor. */
1691
+ interface Colors {
1692
+ /** - `Hex` color (e.g., `#ff5733`) */
1693
+ hex: Hex6;
1694
+ /** - `Hex8` color (Hex with opacity, e.g., `#ff573380`) */
1695
+ hex8: Hex8;
1696
+ /** - `RGB` color (e.g., `rgb(255, 87, 51)`) */
1697
+ rgb: RGB;
1698
+ /** - `RGBA` color (e.g., `rgba(255, 87, 51, 1)`) */
1699
+ rgba: RGBA;
1700
+ /** - `HSL` color (e.g., `hsl(14, 100%, 60%)`) */
1701
+ hsl: HSL;
1702
+ /** - `HSLA` color (e.g., `hsla(14, 100%, 60%, 1)`) */
1703
+ hsla: HSLA;
1704
+ }
1626
1705
  /** Analogous colors */
1627
1706
  type Analogous = [Color, Color, Color];
1628
1707
  /** Triad color */
@@ -3008,6 +3087,8 @@ declare class Chronos {
3008
3087
  type Hours = '00' | '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23';
3009
3088
  /** - Minute in numeric string from `00` to `59` */
3010
3089
  type Minutes = '00' | '01' | '02' | '03' | '04' | '05' | '06' | '07' | '08' | '09' | '10' | '11' | '12' | '13' | '14' | '15' | '16' | '17' | '18' | '19' | '20' | '21' | '22' | '23' | '24' | '25' | '26' | '27' | '28' | '29' | '30' | '31' | '32' | '33' | '34' | '35' | '36' | '37' | '38' | '39' | '40' | '41' | '42' | '43' | '44' | '45' | '46' | '47' | '48' | '49' | '50' | '51' | '52' | '53' | '54' | '55' | '56' | '57' | '58' | '59';
3090
+ /** - Second in numeric string from `00` to `59` */
3091
+ type Seconds = Minutes;
3011
3092
  /** - Time in "HH:MM" format. */
3012
3093
  type Time = `${Hours}:${Minutes}`;
3013
3094
  /** - Configuration options for greeting. */
@@ -3060,6 +3141,8 @@ type Second = (typeof SECOND_FORMATS)[number];
3060
3141
  type Millisecond = (typeof MILLISECOND_FORMATS)[number];
3061
3142
  /** Time formats in either capital or lowercase `am/pm` format */
3062
3143
  type TimeFormats = (typeof TIME_FORMATS)[number];
3144
+ /** Standard union formats for `Chronos`. */
3145
+ type ChronosFormat = Year | Month | Day | MonthDate | Hour | Minute | Second | Millisecond | TimeFormats;
3063
3146
  /** Standard date formats. */
3064
3147
  type DateParts = `${MonthDate} ${Exclude<Month, 'M' | 'MM'>}` | `${Exclude<Month, 'M' | 'MM'>} ${MonthDate}` | `${Day}, ${MonthDate} ${Exclude<Month, 'M' | 'MM'>}` | `${Day}, ${Exclude<Month, 'M' | 'MM'>} ${MonthDate}` | `${Exclude<Month, 'M' | 'MM'>} ${MonthDate}, ${Year}` | `${MonthDate} ${Exclude<Month, 'M' | 'MM'>}, ${Year}` | `${Exclude<Month, 'M' | 'MM'>} ${MonthDate} ${Year}` | `${MonthDate} ${Exclude<Month, 'M' | 'MM'>} ${Year}` | `${Day}, ${Exclude<Month, 'M' | 'MM'>} ${MonthDate}, ${Year}` | `${Day}, ${MonthDate} ${Exclude<Month, 'M' | 'MM'>}, ${Year}` | `${Day}, ${Exclude<Month, 'M' | 'MM'>} ${MonthDate} ${Year}` | `${Day}, ${MonthDate} ${Exclude<Month, 'M' | 'MM'>} ${Year}` | `${Exclude<MonthDate, 'Do'>}.${Exclude<Month, 'mmm' | 'mmmm'>}.${Year}` | `${Year}.${Exclude<Month, 'mmm' | 'mmmm'>}.${Exclude<MonthDate, 'Do'>}` | `${Exclude<MonthDate, 'Do'>}/${Exclude<Month, 'mmm' | 'mmmm'>}/${Year}` | `${Exclude<MonthDate, 'Do'>}-${Exclude<Month, 'mmm' | 'mmmm'>}-${Year}` | `${Exclude<Month, 'mmm' | 'mmmm'>}/${Exclude<MonthDate, 'Do'>}/${Year}` | `${Exclude<Month, 'mmm' | 'mmmm'>}-${Exclude<MonthDate, 'Do'>}-${Year}` | `${Year}-${Exclude<Month, 'mmm' | 'mmmm'>}-${Exclude<MonthDate, 'Do'>}` | `${Year}/${Exclude<Month, 'mmm' | 'mmmm'>}/${Exclude<MonthDate, 'Do'>}` | `${Year}-${Exclude<MonthDate, 'Do'>}-${Exclude<Month, 'mmm' | 'mmmm'>}` | `${Year}/${Exclude<MonthDate, 'Do'>}/${Exclude<Month, 'mmm' | 'mmmm'>}`;
3065
3148
  /** Standard Time Formats */
@@ -3488,6 +3571,12 @@ type QueryObjectValue = NormalPrimitive | NormalPrimitive[] | QueryObject;
3488
3571
  type QueryObject = {
3489
3572
  [key: string]: QueryObjectValue;
3490
3573
  };
3574
+ /** - Object type with string or number or boolean as value for each key. */
3575
+ type GenericObjectPrimitive = Record<string, string | number | boolean>;
3576
+ /** - Dot-notation keys for nested objects with unknown value (including optional properties) */
3577
+ type DotNotationKeyStrict<T> = T extends AdvancedTypes ? never : T extends StrictObject ? HasMethods<T> extends true ? never : {
3578
+ [K in keyof T & string]: NonNullable<T[K]> extends (StrictObject) ? `${K}` | `${K}.${DotNotationKey<NonNullable<T[K]>>}` : `${K}`;
3579
+ }[keyof T & string] : never;
3491
3580
  /** - Dot-notation keys for nested objects with `any` value (including optional properties) */
3492
3581
  type DotNotationKey<T> = T extends AdvancedTypes ? never : T extends GenericObject ? HasMethods<T> extends true ? never : {
3493
3582
  [K in keyof T & string]: NonNullable<T[K]> extends (GenericObject) ? `${K}` | `${K}.${DotNotationKey<NonNullable<T[K]>>}` : `${K}`;
@@ -3609,6 +3698,10 @@ type FirstFieldKey<T extends GenericObject, K1 extends string = 'value', K2 exte
3609
3698
  type FirstFieldValue<T extends GenericObject, K1 extends string = 'value', K2 extends string = 'label', V extends boolean = false> = V extends true ? FirstFieldKey<T, K1, K2, V> extends (Exclude<FirstFieldKey<T, K1, K2, V>, number>) ? string : number : string;
3610
3699
  /** Type of values for the option fields */
3611
3700
  type FieldValue<P extends K1 | K2, T extends GenericObject, K1 extends string = 'value', K2 extends string = 'label', V extends boolean = false> = P extends K1 ? FirstFieldValue<T, K1, K2, V> : string;
3701
+ /** Type of an option in `OptionsArray` */
3702
+ type Option<T extends GenericObject, K1 extends string = 'value', K2 extends string = 'label', V extends boolean = false> = {
3703
+ [P in K1 | K2]: FieldValue<P, T, K1, K2, V>;
3704
+ };
3612
3705
  /** * Option for sorting order. */
3613
3706
  interface OrderOption {
3614
3707
  /**
@@ -3623,6 +3716,8 @@ interface SortByOption<T extends GenericObject> extends OrderOption {
3623
3716
  /** The field by which to sort the objects in the array. */
3624
3717
  sortByField: NestedPrimitiveKey<T>;
3625
3718
  }
3719
+ /** * Options for sorting array. */
3720
+ type SortOptions<T> = T extends GenericObject ? SortByOption<T> : OrderOption;
3626
3721
  /** Optional settings to configure comparison behavior. */
3627
3722
  interface SortNature {
3628
3723
  /** If true, compares string chunks without case sensitivity. Defaults to `true`. */
@@ -4883,4 +4978,4 @@ declare function isEnvironment(env: string): boolean;
4883
4978
  */
4884
4979
  declare function isNumericString(value: unknown): value is `${number}`;
4885
4980
 
4886
- export { Chronos, Chronos as Chronus, Color, Color as Colour, Currency, Finder, Paginator, Unit, Unit as UnitConverter, areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, getAverage as calculateAverage, calculateHCF as calculateGCD, calculateHCF, calculateLCM as calculateLCD, calculateLCM, calculatePercentage, capitalizeString, getOrdinal as cardinalToOrdinal, typedChronos as chronos, typedChronos as chronosjs, typedChronos as chronosts, typedChronos as chronus, typedChronos as chronusjs, typedChronos as chronusts, clampNumber, cloneObject, naturalSort as compareNaturally, naturalSort as compareSorter, convertArrayToString, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, createControlledFormData as convertIntoFormData, formatUTCOffset as convertMinutesToUTCOffset, formatCurrency as convertNumberToCurrency, getOrdinal as convertNumberToOrdinal, numberToWords as convertNumberToWords, convertObjectValues, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, convertStringCase, convertToDecimal, convertToDecimal as convertToFixed, getOrdinal as convertToOrdinal, convertToRomanNumerals, copyToClipboard, countInstanceMethods, countObjectFields, countStaticMethods, countWords, countWords as countWordsInString, createControlledFormData, createControlledFormData as createFormData, createOptionsArray, generateQueryParams as createQueryParams, debounceAction, deepParsePrimitives, isReturningPromise as doesReturnPromise, extractAlphaColorValues, getDuplicates as extractDuplicates, getDuplicates as extractDuplicatesFromArray, extractEmails, extractHourMinute, extractMinutesFromUTC, findMissingElements as extractMissingElements, extractNewFields, extractNumbersFromString as extractNumbers, extractNumbersFromString, extractSolidColorValues, extractTimeFromUTC, extractTimeFromUTC as extractTimeStringFromUTC, getTotalMinutes as extractTotalMinutesFromTime, extractURLs, extractUpdatedAndNewFields, extractUpdatedFields, fibonacciGenerator, filterArrayOfObjects, findMissingElements, findPrimeNumbers, flattenArray, flattenObjectDotNotation, flattenObjectKeyValue, formatCurrency, formatUnitWithPlural as formatNumberWithPluralUnit, generateQueryParams as formatQueryParams, formatUTCOffset, formatUnitWithPlural, formatUnitWithPlural as formatWithPlural, generateAnagrams, fibonacciGenerator as generateFibonacci, getGreeting as generateGreeting, generateQueryParams, generateRandomColorInHexRGB, generateRandomHSLColor, generateRandomID, getAverage, getAverage as getAverageOfNumbers, getClassDetails, getColorForInitial, getCurrentDateTime, getCurrentDateTime as getCurrentTime, getDuplicates, getDuplicates as getDuplicatesFromArray, getFibonacciSeries as getFibonacci, getFibonacciSeries as getFibonacciNumbers, getFibonacciSeries, getFibonacciSeriesMemo, getFromLocalStorage, getFromSessionStorage, getGreeting, getInstanceMethodNames, countInstanceMethods as getInstanceMethodsCount, getLastArrayElement, getLevenshteinDistance, getFibonacciSeriesMemo as getMemoizedFibonacci, getFibonacciSeriesMemo as getMemoizedFibonacciSeries, extractMinutesFromUTC as getMinutesFromUTC, findMissingElements as getMissingElements, getNthFibonacci, getNumbersInRange, getOrdinal, getOrdinal as getOrdinalNumber, findPrimeNumbers as getPrimeNumbers, getQueryParams, parseQueryString as getQueryStringAsObject, getRandomFloat as getRandomDecimal, getRandomFloat, getRandomNumber as getRandomInt, getRandomNumber, getStaticMethodNames, countStaticMethods as getStaticMethodsCount, sumNumbers as getSumOfNumbers, extractTimeFromUTC as getTimeStringFromUTC, getTotalMinutes, getTotalMinutes as getTotalMinutesFromTime, extractMinutesFromUTC as getTotalMinutesFromUTC, getGreeting as greet, convertToRomanNumerals as integerToRoman, isArray, isArrayOfType, isValidArray as isArrayWithLength, isBase64, isBigInt, isBoolean, isBrowser, isCamelCase, isCustomFile, isCustomFileArray, isDate, isDateLike, isDateString, isDeepEqual, isEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEnvironment, isError, isEven, isEven as isEvenNumber, isEnvironment as isExpectedNodeENV, isFalsy, isFibonacci, isFileArray, isFileList, isFileOrBlob, isFileUpload, isFunction, isIPAddress, isInteger, areInvalidNumbers as isInvalidNumber, isInvalidOrEmptyArray, isJSON, isJSON as isJSONObject, isKebabCase, isLeapYear, isMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNode, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNull, isNumber, areInvalidNumbers as isNumberInvalid, isNumericString, isObject, isEmptyObject as isObjectEmpty, isObjectWithKeys, isOdd, isOdd as isOddNumber, isOriginFileObj, isPalindrome, isFibonacci as isParOfFibonacci, isFibonacci as isParOfFibonacciSeries, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrime, isPrime as isPrimeNumber, isPrimitive, isPromise, isRegExp, isRegExp as isRegularExpression, isReturningPromise, isSet, isSnakeCase, isString, isSymbol, isTruthy, isURL, isUUID, isUndefined, isValidArray, isEmail as isValidEmail, isInvalidOrEmptyArray as isValidEmptyArray, isValidFormData, isJSON as isValidJSON, isMap as isValidMap, isNotEmptyObject as isValidObject, isSet as isValidSet, isValidTime, isValidTime as isValidTimeString, isURL as isValidURL, isValidUTCOffSet as isValidUTC, isValidUTCOffSet, getLevenshteinDistance as levenshteinDistance, maskString, mergeAndFlattenObjects, mergeObjects, formatUTCOffset as minutesToUTCOffset, moveArrayElement, naturalSort, naturalSort as naturalSortForString, normalizeString, getOrdinal as numberToOrdinal, convertToRomanNumerals as numberToRoman, numberToWords, convertToRomanNumerals as numericToRoman, parseFormData, parseJSON, parseJSON as parseJsonDeep, parseJsonToObject, extractNumbersFromString as parseNumbersFromText, parseObjectValues, deepParsePrimitives as parsePrimitivesDeep, parseQueryString, parseObjectValues as parseStringifiedObjectValues, pickFields, pickObjectFieldsByCondition as pickFieldsByCondition, pickFields as pickObjectFields, pickObjectFieldsByCondition, parseQueryString as queryStringToObject, remapFields, remapFields as remapObjectFields, removeDuplicatesFromArray as removeDuplicates, removeDuplicatesFromArray, removeFromLocalStorage, removeFromSessionStorage, replaceAllInString, reverseNumber, reverseString, rotateArray, roundNumber, roundToNearest as roundNumberToNearestInterval, roundNumber as roundToDecimal, roundToNearest, roundToNearest as roundToNearestInterval, sanitizeData, saveToLocalStorage, saveToSessionStorage, serializeForm, shuffleArray, slugifyString, smoothScrollTo, sortAnArray, splitArray, sumDigits, sumNumbers, sumNumbers as sumOfNumbers, throttleAction, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, toggleFullScreen, trimString, truncateString, updateQueryParam, countWords as wordCount };
4981
+ export { type AdvancedTypes, type AlphaColors, type AlphaValue, type AlphaValues, type AnagramOptions, type Analogous, type Any, type ApplyChangeOptions, type AsyncFunction, type Branded, type CSSColor, type CapitalizeOptions, type CaseFormat, Chronos, type ChronosFormat, type ChronosInput, type ChronosMethods, type ChronosObject, type ChronosStatics, Chronos as Chronus, type ClassDetails, Color, type ColorInput, type ColorInputArray, type ColorType, type ColorTypeAlpha, type ColorTypeSolid, type Colors, Color as Colour, type Constructor, type ConvertOptions, type ConvertedColors, type ConvertedDecimal, Currency, type CurrencyCode, type CustomFile, type DateParts, type Day, type DayPart, type DayPartConfig, type DecimalOptions, type DelayedFn, type DotNotationKey, type DotNotationKeyStrict, type FalsyPrimitive, type FieldValue, type FileError, type FileUpload, type FindOptions, Finder, type FirstFieldKey, type FirstFieldValue, type FlattenPartial, type Flattened, type FormDataConfigs, type FormatOptions, type FrankFurter, type FromMetaOptions, type GenericFn, type GenericObject, type GenericObjectPrimitive, type GetChangeOptions, type GetDifferenceOptions, type GetOriginalOptions, type GetPercentOptions, type GetValueOptions, type GreetingConfigs, type HSL, type HSLA, type HasMethods, type Hex, type Hex6, type Hex8, type Hour, type Hours, type InversePercentageOptions, type KeyForArray, type KeyForObject, type LocaleCode, type MaskOptions, type Millisecond, type Minute, type Minutes, type Month, type MonthDate, type NegativeUTCHour, type NestedKeyString, type NestedPrimitiveKey, type NonNullishPrimitiveKey, type NormalPrimitive, type NormalPrimitiveKey, type NumberType, type Numberified, type Numeric, type Option, type OptionsConfig, type OrderOption, type OriginFileObj, type OwnKeys, type PageListOptions, Paginator, type PaginatorMeta, type PaginatorOptions, type ParsedFormData, type PartialOrRequired, type Percent, type PercentageOptions, type PositiveUTCHour, type Primitive, type Quarter, type QueryObject, type QueryObjectValue, type QueryString, type RGB, type RGBA, type RandomIdOptions, type RandomNumberOptions, type RangeOptions, type RangedNumbers, type SIPrefix, type SanitizeOptions, type Second, type Seconds, type SerializedForm, type SolidColors, type SolidValues, type SortByOption, type SortNature, type SortOptions, type StrictFormat, type StrictObject, type Stringified, type SupportedCurrency, type Tetrad, type ThrottledFn, type Time, type TimeDuration, type TimeFormats, type TimeParts, type TimeUnit, type TimeZone, type Triad, type UTCMinute, type UTCOffSet, Unit, Unit as UnitConverter, type UnitKey, type UnitLabel, type UnitNumberMethods, type VoidFunction, type WithoutOrigin, type Year, type ZodiacSign, areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, getAverage as calculateAverage, calculateHCF as calculateGCD, calculateHCF, calculateLCM as calculateLCD, calculateLCM, calculatePercentage, capitalizeString, getOrdinal as cardinalToOrdinal, typedChronos as chronos, typedChronos as chronosjs, typedChronos as chronosts, typedChronos as chronus, typedChronos as chronusjs, typedChronos as chronusts, clampNumber, cloneObject, naturalSort as compareNaturally, naturalSort as compareSorter, convertArrayToString, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, createControlledFormData as convertIntoFormData, formatUTCOffset as convertMinutesToUTCOffset, formatCurrency as convertNumberToCurrency, getOrdinal as convertNumberToOrdinal, numberToWords as convertNumberToWords, convertObjectValues, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, convertStringCase, convertToDecimal, convertToDecimal as convertToFixed, getOrdinal as convertToOrdinal, convertToRomanNumerals, copyToClipboard, countInstanceMethods, countObjectFields, countStaticMethods, countWords, countWords as countWordsInString, createControlledFormData, createControlledFormData as createFormData, createOptionsArray, generateQueryParams as createQueryParams, debounceAction, deepParsePrimitives, isReturningPromise as doesReturnPromise, extractAlphaColorValues, getDuplicates as extractDuplicates, getDuplicates as extractDuplicatesFromArray, extractEmails, extractHourMinute, extractMinutesFromUTC, findMissingElements as extractMissingElements, extractNewFields, extractNumbersFromString as extractNumbers, extractNumbersFromString, extractSolidColorValues, extractTimeFromUTC, extractTimeFromUTC as extractTimeStringFromUTC, getTotalMinutes as extractTotalMinutesFromTime, extractURLs, extractUpdatedAndNewFields, extractUpdatedFields, fibonacciGenerator, filterArrayOfObjects, findMissingElements, findPrimeNumbers, flattenArray, flattenObjectDotNotation, flattenObjectKeyValue, formatCurrency, formatUnitWithPlural as formatNumberWithPluralUnit, generateQueryParams as formatQueryParams, formatUTCOffset, formatUnitWithPlural, formatUnitWithPlural as formatWithPlural, generateAnagrams, fibonacciGenerator as generateFibonacci, getGreeting as generateGreeting, generateQueryParams, generateRandomColorInHexRGB, generateRandomHSLColor, generateRandomID, getAverage, getAverage as getAverageOfNumbers, getClassDetails, getColorForInitial, getCurrentDateTime, getCurrentDateTime as getCurrentTime, getDuplicates, getDuplicates as getDuplicatesFromArray, getFibonacciSeries as getFibonacci, getFibonacciSeries as getFibonacciNumbers, getFibonacciSeries, getFibonacciSeriesMemo, getFromLocalStorage, getFromSessionStorage, getGreeting, getInstanceMethodNames, countInstanceMethods as getInstanceMethodsCount, getLastArrayElement, getLevenshteinDistance, getFibonacciSeriesMemo as getMemoizedFibonacci, getFibonacciSeriesMemo as getMemoizedFibonacciSeries, extractMinutesFromUTC as getMinutesFromUTC, findMissingElements as getMissingElements, getNthFibonacci, getNumbersInRange, getOrdinal, getOrdinal as getOrdinalNumber, findPrimeNumbers as getPrimeNumbers, getQueryParams, parseQueryString as getQueryStringAsObject, getRandomFloat as getRandomDecimal, getRandomFloat, getRandomNumber as getRandomInt, getRandomNumber, getStaticMethodNames, countStaticMethods as getStaticMethodsCount, sumNumbers as getSumOfNumbers, extractTimeFromUTC as getTimeStringFromUTC, getTotalMinutes, getTotalMinutes as getTotalMinutesFromTime, extractMinutesFromUTC as getTotalMinutesFromUTC, getGreeting as greet, convertToRomanNumerals as integerToRoman, isArray, isArrayOfType, isValidArray as isArrayWithLength, isBase64, isBigInt, isBoolean, isBrowser, isCamelCase, isCustomFile, isCustomFileArray, isDate, isDateLike, isDateString, isDeepEqual, isEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEnvironment, isError, isEven, isEven as isEvenNumber, isEnvironment as isExpectedNodeENV, isFalsy, isFibonacci, isFileArray, isFileList, isFileOrBlob, isFileUpload, isFunction, isIPAddress, isInteger, areInvalidNumbers as isInvalidNumber, isInvalidOrEmptyArray, isJSON, isJSON as isJSONObject, isKebabCase, isLeapYear, isMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNode, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNull, isNumber, areInvalidNumbers as isNumberInvalid, isNumericString, isObject, isEmptyObject as isObjectEmpty, isObjectWithKeys, isOdd, isOdd as isOddNumber, isOriginFileObj, isPalindrome, isFibonacci as isParOfFibonacci, isFibonacci as isParOfFibonacciSeries, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrime, isPrime as isPrimeNumber, isPrimitive, isPromise, isRegExp, isRegExp as isRegularExpression, isReturningPromise, isSet, isSnakeCase, isString, isSymbol, isTruthy, isURL, isUUID, isUndefined, isValidArray, isEmail as isValidEmail, isInvalidOrEmptyArray as isValidEmptyArray, isValidFormData, isJSON as isValidJSON, isMap as isValidMap, isNotEmptyObject as isValidObject, isSet as isValidSet, isValidTime, isValidTime as isValidTimeString, isURL as isValidURL, isValidUTCOffSet as isValidUTC, isValidUTCOffSet, getLevenshteinDistance as levenshteinDistance, maskString, mergeAndFlattenObjects, mergeObjects, formatUTCOffset as minutesToUTCOffset, moveArrayElement, naturalSort, naturalSort as naturalSortForString, normalizeString, getOrdinal as numberToOrdinal, convertToRomanNumerals as numberToRoman, numberToWords, convertToRomanNumerals as numericToRoman, parseFormData, parseJSON, parseJSON as parseJsonDeep, parseJsonToObject, extractNumbersFromString as parseNumbersFromText, parseObjectValues, deepParsePrimitives as parsePrimitivesDeep, parseQueryString, parseObjectValues as parseStringifiedObjectValues, pickFields, pickObjectFieldsByCondition as pickFieldsByCondition, pickFields as pickObjectFields, pickObjectFieldsByCondition, parseQueryString as queryStringToObject, remapFields, remapFields as remapObjectFields, removeDuplicatesFromArray as removeDuplicates, removeDuplicatesFromArray, removeFromLocalStorage, removeFromSessionStorage, replaceAllInString, reverseNumber, reverseString, rotateArray, roundNumber, roundToNearest as roundNumberToNearestInterval, roundNumber as roundToDecimal, roundToNearest, roundToNearest as roundToNearestInterval, sanitizeData, saveToLocalStorage, saveToSessionStorage, serializeForm, shuffleArray, slugifyString, smoothScrollTo, sortAnArray, splitArray, sumDigits, sumNumbers, sumNumbers as sumOfNumbers, throttleAction, convertToRomanNumerals as toRoman, convertToRomanNumerals as toRomanNumeral, toggleFullScreen, trimString, truncateString, updateQueryParam, countWords as wordCount };