import type { CamelToKebab, CamelToPascal, KebabToCamel, KebabToPascal, KebabToSnake, PascalToCamel, PascalToKebab, PascalToSnake, SnakeToCamel, SnakeToKebab, SnakeToPascal } from '@toolbox-ts/types/defs/string'; import { assertIsStringCamelCase, assertIsStringKebabCase, assertIsStringPascalCase, assertIsStringSnakeCase } from '../../../../core/guards/primitives/strs/index.js'; export declare const camel: { readonly is: { readonly name: "isStringCaseCamel"; readonly typeName: "StringCaseCamel"; } & ((v: S) => v is import("@toolbox-ts/types/defs/string").IsCamelCase); readonly assert: typeof assertIsStringCamelCase; /** * Basic camel to kebab text conversion * - Ensures the first letter is lowercase. * - Separates uppercase letters and prefixes with hyphen * - This behavior is chosen to align the result with the CamelToKebab Type. * - Converts full string to lowercase. * @example * ```ts * camelToKebab('noEdit') // 'no-edit' * camelToKebab('helloWorldHowAreYou') // 'hello-world-how-are-you-doing-today' * camelToKebab('aAAAAA') // 'a-a-a-a-a-a' * ``` */ readonly toKebab: (str: S) => CamelToKebab; /** * Converts a camelCase string to PascalCase. * * @template S - The camelCase string to convert. * @example * ```ts * camel.toPascal('camelCase') // 'CamelCase' * camel.toPascal('helloWorld') // 'HelloWorld' * ``` */ readonly toPascal: (s: S) => CamelToPascal; /** * Converts a camelCase string to snake_case. * * @example * ```ts * camel.toSnake('camelCase') // 'camel_case' * camel.toSnake('helloWorld') // 'hello_world' * ``` */ readonly toSnake: (str: S) => KebabToSnake>; }; export declare const pascal: { readonly is: { readonly name: "isStringCasePascal"; readonly typeName: "StringCasePascal"; } & ((v: S) => v is import("@toolbox-ts/types/defs/string").IsPascalCase); readonly assert: typeof assertIsStringPascalCase; /** * Converts a PascalCase string to kebab-case. * * @example * ```ts * pascal.toKebab('PascalCase') // 'pascal-case' * pascal.toKebab('HelloWorld') // 'hello-world' * ``` */ readonly toKebab: (str: S) => PascalToKebab; /** * Converts a PascalCase string to camelCase. * * @example * ```ts * pascal.toCamel('PascalCase') // 'pascalCase' * pascal.toCamel('HelloWorld') // 'helloWorld' * ``` */ readonly toCamel: (s: S) => PascalToCamel; /** * Converts a PascalCase string to snake_case. * * @example * ```ts * pascal.toSnake('PascalCase') // 'pascal_case' * pascal.toSnake('HelloWorld') // 'hello_world' * ``` */ readonly toSnake: (str: S) => PascalToSnake; }; export declare const kebab: { readonly is: { readonly name: "isStringCaseKebab"; readonly typeName: "StringCaseKebab"; } & ((v: V) => v is import("@toolbox-ts/types/defs/string").IsKebabCase); readonly assert: typeof assertIsStringKebabCase; /** * Converts a kebab-case string to camelCase. * @example * ```ts * kebab.toCamel('node-edit') // 'noEdit' * kebab.toCamel('no-verify') // 'noVerify' * kebab.toCamel('a-a-a-a-a-a') // 'aAAAAA' * ``` */ readonly toCamel: (str: S) => KebabToCamel; /** * Converts a kebab-case string to PascalCase. * @example * ```ts * kebab.toPascal('node-edit') // 'NoEdit' * kebab.toPascal('no-verify') // 'NoVerify' * kebab.toPascal('a-a-a-a-a-a') // 'AAAAAA' * ``` */ readonly toPascal: (str: S) => KebabToPascal; /** * Converts a kebab-case string to snake_case. * * @example * ```ts * kebab.toSnake('kebab-case') // 'kebab_case' * kebab.toSnake('no-verify') // 'no_verify' * ``` */ readonly toSnake: (str: S) => KebabToSnake; }; export declare const snake: { readonly is: { readonly name: "isStringCaseSnake"; readonly typeName: "StringCaseSnake"; } & ((v: S) => v is import("@toolbox-ts/types/defs/string").IsSnakeCase); readonly assert: typeof assertIsStringSnakeCase; /** * Converts a snake_case string to kebab-case. * @example * ```ts * snake.toKebab('node_edit') // 'node-edit' * snake.toKebab('no_verify') // 'no-verify' * snake.toKebab('a_a_a_a_a_a') // 'a-a-a-a-a-a' * ``` */ readonly toKebab: (str: S) => SnakeToKebab; /** * Converts a snake_case string to camelCase. * * @example * ```ts * snake.toCamel('snake_case') // 'snakeCase' * snake.toCamel('no_verify') // 'noVerify' * ``` */ readonly toCamel: (str: S) => SnakeToCamel; /** * Converts a snake_case string to PascalCase. * * @example * ```ts * snake.toPascal('snake_case') // 'SnakeCase' * snake.toPascal('no_verify') // 'NoVerify' * ``` */ readonly toPascal: (str: S) => SnakeToPascal; };