import type { CamelCase, SnakeCase, StringCase } from "./types"; /** Upper-case first letter of string. */ export declare const capitalize: (str: T) => Capitalize; /** Lower-case first letter of string */ export declare const uncapitalize: (str: T) => Uncapitalize; /** Strictly typed `String.toUpperCase()`. */ export declare const upper: (str: T) => Uppercase; /** Strictly typed `String.toLowerCase()`. */ export declare const lower: (str: T) => Lowercase; /** * Transforms a variable name to snake case. * * Note: The rules for transforming anything to snake case are somewhat vague. * So use this only for very simple names where the resulting value is * absolutely unambiguous. For more examples of how names are transformed, have * a look at the test cases. * * @example * ``` * snake('fooBar') // 'foo_bar' * ``` */ export declare const snake: (str: T) => SnakeCase; /** * Transforms a variable name to camel case. * * Note: The rules for transforming anything to camel case are somewhat vague. * So use this only for very simple names where the resulting value is * absolutely unambiguous. For more examples of how names are transformed, have * a look at the test cases. * * @example * ``` * camel('foo_bar') // 'fooBar' * ``` */ export declare const camel: (str: T) => CamelCase; /** * Transform a variable name to `targetCase` * * @see {@link snake} * @see {@link camel} */ export declare const transformCase: (str: T, targetCase: C) => C extends "snake" ? SnakeCase : never;