import { TitleCase, TitleCaseOptions } from "../node_modules/.pnpm/remeda@2.39.0_patch_hash_e9e98c19bf4c5844450bf78de4493bf242de2fdb7c7ecf7ee2313945578d9b68/node_modules/remeda/dist/index.mjs"; //#region src/string/to-title-case.d.ts /** * Converts a string to **Title Case** by splitting it into words and capitalizing * each one, joined by single spaces (`'fooBar'` → `'Foo Bar'`). For string literal * inputs the return type is the precisely-typed title-cased string; a non-literal * `string` widens to `string`. * * This replaces the former `toStartCase`. The difference is acronym handling: by * default consecutive capitals are preserved, so `'XMLHttpRequest'` becomes * `'XML Http Request'` (a plain start-case conversion produced `'Xml Http Request'`); * pass `{preserveConsecutiveUppercase: false}` for the old behavior. * @param value - The string to convert. * @param options - Optional flags; set `preserveConsecutiveUppercase` to `false` to lowercase runs of capitals. * @returns The title-cased string. * @example * toTitleCase('hello world'); * // 'Hello World' * @example * // Consecutive capitals are preserved by default * toTitleCase('XMLHttpRequest'); * // 'XML Http Request' * @example * toTitleCase('XMLHttpRequest', {preserveConsecutiveUppercase: false}); * // 'Xml Http Request' */ declare const toTitleCase: (value: S, options?: Options) => TitleCase; //#endregion export { toTitleCase };