/** * Shorten a string upto a maximum length of characters and add `...` as suffix if it exceeds the maximum length * @param str The The string you want to shorten * @param maxLength Maximum length of character * @returns Formatted shortedned string */ export declare const shorten: (str: string, maxLength?: number) => string; /** * Checks if a given string consists of only emojis. * * However this classifies a string with numbers as emoji as well. * Which works in our favour for now in chat as it enlarges messages with just numbers. * @param str String on which to perform the check on * @returns A Boolean value which indicates if string consists of only emojis */ export declare const hasOnlyEmojis: (str: string) => boolean; export declare const sanitizeLink: (link: string) => string; /** * Formats a given name and returns **Participant** for unnamed participants. * @param name Name of participant * @returns Name to use in the UI */ export declare const formatName: (name: string) => string; export declare function getInitials(name: string, maxInitials?: number): string;