export interface GetInitialsOptions { /** Maximum number of initials to take. Defaults to 2. */ max?: number; /** Fallback when the input is empty / nullish. Defaults to '?'. */ fallback?: string; } /** * Returns the uppercase initials of a name. Splits on whitespace, takes the * first character of each token, caps at `max` (default 2). Trims the input * and returns `fallback` when the result would be empty. * * getInitials('Alice Johnson') // 'AJ' * getInitials(' alice johnson ') // 'AJ' * getInitials('Maria del Carmen', { max: 3 }) // 'MDC' * getInitials('') // '?' * getInitials(undefined) // '?' */ export declare function getInitials(name: string | null | undefined, options?: GetInitialsOptions): string; //# sourceMappingURL=get-initials.d.ts.map