/** * @copyright Sister Software. * @license AGPL-3.0 * @author Teffen Ellis, et al. */ import type { CamelCase, SnakeCase } from "type-fest"; /** * Converts a name to snake_case, unless the name is already in all caps. */ export declare function smartSnakeCase(name: T): T extends Uppercase ? T : SnakeCase; /** * Converts a name to camelCase, unless the name is already in all caps. */ export declare function smartCamelCase(name: T): T extends Uppercase ? T : CamelCase; /** * Predicate to determine if a given string is uniformly cased, i.e. all uppercase or all lowercase. */ export declare function isUniformlyCased(input: string | null): boolean; /** * Capitalizes a string, unless the string is uniformly cased, or an email address. */ export declare function smartCapitalCase(input: string): string; /** * Python `str.isupper()`: at least one cased character, and every cased character uppercase. * * Distinct from {@link isUniformlyCased}, which reports `true` for a string with no cased characters at all — `"123"` is * uniformly cased and is NOT `isupper()`. Ports that gate a titlecase on the Python predicate need this one. */ export declare function pyIsUpper(input: string): boolean; /** * Python `str.title()`: titlecase the first cased character of each run, lowercase the rest. * * Not `capitalCase` from change-case, which splits on word boundaries and drops punctuation — Python titlecases * `"o'brien"` to `"O'Brien"` because the apostrophe ends a cased run. */ export declare function pyTitle(input: string): string; /** * Titlecase a SHOUTED string, leave anything else alone — the shape source dumps use when a field arrives ALL CAPS. */ export declare function titlecaseIfUpper(input: string): string; //# sourceMappingURL=identifiers.d.ts.map