/** * Casing helpers shared by the name-based detectors (month, weekday). * * Detectors capture the casing of the source text so extrapolated names match * the user's style (`JAN → FEB`, `jan → feb`, `Jan → Feb`). * * @packageDocumentation */ /** The three casing styles a name-based detector preserves. */ export declare enum TextCasing { /** First letter upper, rest lower (`January`). */ Title = "title", /** All upper (`JANUARY`). */ Upper = "upper", /** All lower (`january`). */ Lower = "lower" } /** * Infers the casing style of a word. * * @param word - A non-empty word. * @returns The detected {@link TextCasing} (defaults to {@link TextCasing.Title}). */ export declare function detectCasing(word: string): TextCasing; /** * Applies a casing style to a canonical (Title-cased) name. * * @param name - The canonical name (as produced by `Intl`). * @param casing - The target casing. * @returns The re-cased name. */ export declare function applyCasing(name: string, casing: TextCasing): string; //# sourceMappingURL=text-casing.d.ts.map