import { SanitizedText } from '../../types'; /** * Validate text input to prevent injection attacks. */ export declare function validateTextInput(text: string, fieldName?: string): SanitizedText; /** * Check a text limit by Unicode code points without scanning unbounded input in full. */ export declare function exceedsTextLength(text: string, maxLength?: number): boolean; /** * Truncate text at a Unicode code-point boundary. */ export declare function truncateText(text: string, maxLength?: number): string; /** * Sanitize control characters and dangerous Unicode sequences. * Centralizes all control character filtering logic. */ export declare function sanitizeControlChars(text: string): string; /** * Validate and sanitize text content. */ export declare function sanitizeText(text: string): SanitizedText;