//#region src/stringUtils.d.ts type Arg = string | false | undefined | null; /** * A util to create more legible conditional concatenated strings * * @example * joinStrings('a', 'b', 'c'); // 'abc' * joinStrings('a', false, 'c'); // 'ac' * joinStrings('a', addBString ? 'b' : null, 'c'); // 'ac' if addBString is false, 'abc' if addBString is true * * @param args */ declare function concatStrings(...args: (Arg | Arg[])[]): string; /** @deprecated Use {@link concatStrings} instead */ declare const joinStrings: typeof concatStrings; declare function formatNum(num: number, maxDecimalsOrOptions?: number | Intl.NumberFormatOptions): string; /** Check if a string is `snake_case` */ declare function isSnakeCase(str: string): boolean; /** Check if a string is `kebab-case` */ declare function isKebabCase(str: string): boolean; /** Check if a string is `PascalCase` */ declare function isPascalCase(str: string): boolean; /** Check if a string is `camelCase` */ declare function isCamelCase(str: string): boolean; /** Check if a string is `Title Case` */ declare function isTitleCase(str: string): boolean; /** Check if a string is `Sentence Case` */ declare function isSentenceCase(str: string): boolean; /** Check if a string is `CONSTANT_CASE` */ declare function isConstantCase(str: string): boolean; /** Check if a string is `dot.case` */ declare function isDotCase(str: string): boolean; /** Check if a string is `path/case` */ declare function isPathCase(str: string): boolean; /** Convert a string to `kebab-case` */ declare function convertToKebabCase(str: string): string; /** Convert a string to `snake_case` */ declare function convertToSnakeCase(str: string): string; /** Convert a string to `PascalCase` */ declare function convertToPascalCase(str: string): string; /** Convert a string to `camelCase` */ declare function convertToCamelCase(str: string): string; /** Convert a string to `Sentence Case` */ declare function convertToSentenceCase(str: string): string; /** Convert a string to `Title Case` */ declare function convertToTitleCase(str: string): string; /** Convert a string to `CONSTANT_CASE` */ declare function convertToConstantCase(str: string): string; /** Convert a string to `dot.case` */ declare function convertToDotCase(str: string): string; /** Convert a string to `path/case` */ declare function convertToPathCase(str: string): string; declare function truncateString(str: string, length: number, ellipsis?: string): string; declare function removeANSIColors(str: string): string; //#endregion export { concatStrings, convertToCamelCase, convertToConstantCase, convertToDotCase, convertToKebabCase, convertToPascalCase, convertToPathCase, convertToSentenceCase, convertToSnakeCase, convertToTitleCase, formatNum, isCamelCase, isConstantCase, isDotCase, isKebabCase, isPascalCase, isPathCase, isSentenceCase, isSnakeCase, isTitleCase, joinStrings, removeANSIColors, truncateString };