/** * Accepts a string and returns 2 characters (max) as initials e.g. AN from Avatar Name * @param avatarName string - Expected full name but accepts any string * @returns string */ export declare const handleAvatarInitials: (avatarName: string) => string; /** * Accepts a string and returns a color hex code e.g. #000000 * @param string string - Accepts any string * @returns string */ export declare const stringToColor: (string: string) => string; /** * Accepts a string and sets the background color and initials for an avatar * @param string string - Accepts any string * @returns string */ export declare const stringAvatar: (name: string) => any; /** * Accepts an order, optional in/out toggle and returns * a react-spring style object from useSpring that fades an item * in based on it's order * @param delayOrder number - Order for delaying items * @param reverse boolean - Toggles the direction of the animation * @returns Object */ export declare const useFadeIn: (delayOrder: number, reverse?: boolean) => Object; /** * Accepts an order, optional in/out toggle and returns * a react-spring style object from useSpring that fades and moves * an item in based on it's order * @param delayOrder number - Order for delaying items * @param reverse boolean - Toggles the direction of the animation * @returns Object */ export declare const useFadeAndMoveIn: (delayOrder: number, reverse?: boolean) => Object; interface IHubTrackingProps { hubApiUrl: string; apiKey: string; token: string; isAppSwitcher: boolean; eventTypeId: string; referenceId: string; url: string; } /** * Sends tracking to the Hub. * @param {string} param.hubApiUrl - Hub API endpoint. * @param {string} param.apiKey - Hub API key. * @param {string} param.token - Hub access token. * @param {boolean} param.isAppSwitcher - Is the interaction from App switcher. * @param {string} param.eventTypeId - Type of click event. * @param {string} param.referenceId - Clicked Id of the object. * @param {string} param.url - Url of the object on click. */ export declare const handleHubTracking: ({ hubApiUrl, apiKey, token, isAppSwitcher, eventTypeId, referenceId, url }: IHubTrackingProps) => Promise; export {};