/** * Capitalize the first letter of a string */ export declare function capitalize(str: string): string; /** * Convert string to title case (capitalize first letter of each word) */ export declare function titleCase(str: string): string; /** * Convert string to camelCase */ export declare function camelCase(str: string): string; /** * Convert string to PascalCase */ export declare function pascalCase(str: string): string; /** * Convert string to kebab-case */ export declare function kebabCase(str: string): string; /** * Convert string to snake_case */ export declare function snakeCase(str: string): string; /** * Truncate string to specified length with ellipsis */ export declare function truncate(str: string, length: number, suffix?: string): string; /** * Remove extra whitespace and normalize */ export declare function normalizeWhitespace(str: string): string; /** * Count words in a string */ export declare function wordCount(str: string): number; /** * Extract sentences from text */ export declare function extractSentences(text: string): string[]; /** * Remove punctuation from string */ export declare function removePunctuation(str: string): string; /** * Check if string contains only alphanumeric characters */ export declare function isAlphanumeric(str: string): boolean; /** * Sanitize filename by removing invalid characters */ export declare function sanitizeFilename(filename: string): string; /** * Generate a slug from string (URL-friendly) */ export declare function slugify(str: string): string; /** * Pluralize a word (simple implementation) */ export declare function pluralize(word: string, count?: number): string; /** * Format number as ordinal (1st, 2nd, 3rd, etc.) */ export declare function ordinal(number: number): string; /** * Interpolate variables in template string * Example: interpolate("Hello {{name}}!", { name: "World" }) => "Hello World!" */ export declare function interpolate(template: string, variables: Record): string; /** * Calculate Levenshtein distance between two strings */ export declare function levenshteinDistance(str1: string, str2: string): number; //# sourceMappingURL=text.d.ts.map