/** * useColor return type */ interface IUseColorReturn { /** * contrast color, generally used as text inside the main color for better visibility */ contrastColor: string; /** * random color generate */ mainColor: string; } /** * useColor props */ interface IUseColorProps { /** * some base text to compute hash, helps in efficient randomization */ text: string; } /** * Generates a random color based on the sample input text you provide * * @param {IUseColorProps} options props * @returns {IUseColorReturn} returns colors */ declare const useColor: (options: IUseColorProps) => IUseColorReturn; export default useColor;