/** * String Utilities * Common string manipulation and validation functions */ /** * Check if a string contains any of the provided substrings */ export declare function containsAny(str: string, substrings: readonly string[]): boolean; /** * Check if string matches any of the provided patterns (case-insensitive regex) */ export declare function matchesAny(str: string, patterns: readonly string[]): boolean; /** * Check if string is one of the provided values (case-insensitive) */ export declare function isOneOfIgnoreCase(str: string, values: readonly string[]): boolean; /** * Get file extension from URL or filename */ export declare function getFileExtension(url: string): string | null; /** * Check if URL/filename has any of the provided extensions */ export declare function hasAnyExtension(url: string, extensions: readonly string[]): boolean; /** * Media file extensions */ export declare const MEDIA_EXTENSIONS: { readonly IMAGE: readonly ["jpg", "jpeg", "png", "gif", "webp", "svg", "ico", "bmp", "tiff"]; readonly VIDEO: readonly ["mp4", "webm", "avi", "mov", "wmv", "flv", "mkv", "3gp"]; readonly AUDIO: readonly ["mp3", "wav", "ogg", "aac", "flac", "m4a", "wma"]; }; /** * Get all media extensions as a flat array */ export declare function getAllMediaExtensions(): string[]; /** * Media MIME type prefixes */ export declare const MEDIA_MIME_PREFIXES: readonly ["image/", "video/", "audio/"]; //# sourceMappingURL=string.d.ts.map