/** * Avatar Utilities * Utility class for avatar operations * Supports images, initials, icons with Turkish character support */ import type { AvatarShape, AvatarConfig } from './Avatar.types'; /** * Avatar utility class */ export declare class AvatarUtils { /** * Generate initials from name * Supports Turkish characters (Ümit Uz → ÜU) */ static generateInitials(name: string): string; /** * Generate initials from email * umit@example.com → UE */ static generateInitialsFromEmail(email: string): string; /** * Hash string to number (for consistent color assignment) */ static hashString(str: string): number; /** * Get consistent color for name * Same name always returns same color */ static getColorForName(name: string): string; /** * Get border radius for shape */ static getBorderRadius(shape: AvatarShape, size: number): number; /** * Get status color */ static getStatusColor(status: 'online' | 'offline' | 'away' | 'busy'): string; /** * Validate avatar config */ static validateConfig(config: Partial): AvatarConfig; /** * Check if avatar has image */ static hasImage(config: AvatarConfig): boolean; /** * Check if avatar has initials */ static hasInitials(config: AvatarConfig): boolean; /** * Check if avatar has icon */ static hasIcon(config: AvatarConfig): boolean; }