/** * Adds a prefix to a string if it doesn't already start with the prefix. */ export declare function startWith(value: string, start: string): string; /** * Removes a prefix from a string if it starts with the prefix. */ export declare function startWithout(value: string, start: string): string; /** * Adds a suffix to a string if it doesn't already end with the suffix. */ export declare function endWith(text: string, end: string): string; /** * Removes a suffix from a string if it ends with the suffix. */ export declare function endWithout(text: string, end: string): string; /** * Adds a prefix and suffix to a string if it doesn't already start and end with them. */ export declare function surroundWith(text: string, start: string, end: string): string; /** * Adds plurals to a string except for excluded words. * @info This handles most english pluralisation rules, but there are exceptions. */ export declare function pluralize(word: string, count: number): string; /** * Removes plurals from a string. * @info This handles most english pluralisation rules, but there are exceptions. */ export declare function singularize(value: string): string; /** * Converts a number to a string with ordinal suffix. */ export declare function ordinalize(value: number): string; /** * Strip HTML tags from a string efficiently, compatible with SSR. */ export declare function stripHtml(text: string): string; /** * Strips whitespace from a string. */ export declare function stripWhitespace(text: string): string; /** * Strips numbers from a string. */ export declare function stripNumbers(text: string): string; /** * Strips punctuation from a string. */ export declare function stripPunctuation(text: string): string; /** * Strips symbols from a string. */ export declare function stripSymbols(text: string): string; /** * Strips emojis from a string (requires ES6 Unicode support) 🦊. */ export declare function stripEmojis(text: string): string; /** * Converts a string to-a-slug. */ export declare function slugify(text: string): string; /** * Converts a slug to a string. */ export declare function deslugify(text: string): string; /** * Removes spaces and capitalizes the first letter of each word except for the first word. */ export declare function camelCase(text: string): string; /** * Removes spaces and capitalizes the first letter of each word. */ export declare function pascalCase(text: string): string; /** * Replaces spaces with underscores and converts to lowercase. */ export declare function snakeCase(text: string): string; /** * Replaces spaces with hyphens and converts to lowercase. */ export declare function kebabCase(text: string): string; /** * Converts to title case by capitalizing the first letter of each word. */ export declare function titleCase(text: string): string; /** * Escape HTML entities in a string. */ export declare function escapeHtml(text: string): string; /** * Unescape HTML entities in a string. */ export declare function unescapeHtml(text: string): string;