export declare const handleDownloadReactTableDataExcel: (fileName: string, rowData: any[], columns?: any[], customColumns?: any[], HeaderBackGround?: string, HeaderColor?: string) => Promise; export declare function getUsernameFromEmail(email: string): string; export declare function getInitials(name: string): string; export declare function findMenuHierarchy(menuData: any[], currentUrl: string, URLProjectNameWithSlash: string): any; /** * Calculates a date by adding/subtracting days from today or a base date * @param dayOffset - Days to add (positive) or subtract (negative) (default: 0) * @param baseDate - Base date in DD/MM/YYYY format (default: today) * @returns Formatted date string in DD/MM/YYYY format */ export declare const getDesiredDate: (dayOffset?: number, baseDate?: string | null) => string; /** * Calculates sum of numeric values for a specific property across array objects * @param array - Array of objects to sum * @param key - Property name to sum * @returns Total sum of numeric values */ export declare function calculateTotalArrayValueTotal>(array: T[], key: keyof T): number; /** * Checks if first date comes before second date * @param dateStr1 - First date in DD/MM/YYYY format * @param dateStr2 - Second date in DD/MM/YYYY format * @returns True if dateStr1 is before dateStr2 */ export declare function checkIsDateIsBefore(dateStr1: string, dateStr2: string): boolean; /** * Lightens a hex color by a specified percentage * @param color - Hex color string (with or without #) * @param percent - Percentage to lighten (0-100) * @returns Lightened hex color string */ export declare function lightenColor(color: string, percent: number): string; /** * Gets formatted date with optional day offset * @param dayOffset - Days to add (positive) or subtract (negative) from today (default: 0) * @returns Date string in DD/MM/YYYY format */ export declare function getFormattedDate(dayOffset?: number): string; /** * Encrypts text or objects using AES encryption and Base64 encoding * @param text - String to encrypt (objects will be JSON.stringify'd) * @param SECRET_KEY - Secret key for encryption * @returns Base64 encoded encrypted string * @example * ```typescript * const encrypted = await encryptText("Hello World", "myKey"); * const encryptedObj = await encryptText({name: "John"}, "myKey"); * ``` */ export declare const encryptText: (text: string, SECRET_KEY: string) => Promise; /** * Decrypts Base64 encoded AES encrypted text back to original string * @param ciphertext - Base64 encoded encrypted string from encryptText * @param SECRET_KEY - Same secret key used for encryption * @returns Original decrypted text * @example * ```typescript * const decrypted = await decryptText(encryptedString, "myKey"); * ``` */ export declare const decryptText: (ciphertext: string, SECRET_KEY: string) => Promise;