/** * Formats a string by applying a *formatter* function to its words and joins them with a `separator` string. A **word** is considered as a sequence of alphanumerical characters (including diacritics). * * @param { string } str * @param { (word: string, idx: number) => string } formatter - Formatter function to apply to every `str` words. * @param { string } [separator = ''] - String to join formatted words with. Defaults to `" "`. * @returns { string } Formatted string. */ export function formatWords(str: string, formatter: (word: string, idx: number) => string, separator?: string): string; /** * Converts a string to kebab case. Only alphanumeric characters are considered. Diacritics are removed. * * @param { string } str * @returns { string } Kebab cased string. * * @example * ```js * kebabCase('El Cartógrafo Silencioso') // 'el-cartografo-silencioso' * ``` */ export function kebabCase(str: string): string; /** * Splits a string into an array of its words. A **word** is considered as a sequence of alphanumerical characters (including diacritics). * * @param { string } str * @returns { string[] } Array of words. * * @example * ```js * words("A Day At The Beach") // ["A", "Day", "At", "The", "Beach"] * ``` */ export function words(str: string): string[]; //# sourceMappingURL=string.d.ts.map