/** * Smartface Color Util module * @module color * @type {object} * @author Alper Ozisik * @copyright Smartface 2018 * @see {@link https://www.npmjs.com/package/tinycolor2|tinycolor2} * @example * ``` * import Color = require('@smartface/native/ui/color'); * import colorUtil from '@smartface/extension-utils/lib/color'; * colorUtil.rgb(Color.RED); //#ff0000 * colorUtil.rgb(Color.BLUE).tinycolor.darken().toHexString(); //'#0000cc' * ``` */ import Color from '@smartface/native/ui/color'; import TinyColor from "tinycolor2"; /** * Returns 6 digit hexadecimal string from Color object. Does not start with # character */ export declare function rgb(color: Color): string; /** * Returns 8 digit hexadecimal string from Color object. Does not start with # character * @public * @static * @method * @params {UI.Color} color - Smartface Color Object, without gradient * @returns {string} Hexadecimal RGBA representation of the color */ export declare function rgba(color: Color): string; /** * Returns 8 digit hexadecimal string from Color object. Does not start with # character * @public * @static * @method * @params {UI.Color} color - Smartface Color Object, without gradient * @returns {string} Hexadecimal ARGB representation of the color */ export declare function argb(color: Color): string; /** * Creates a tinycolor object from UI.Color * @method * @public * @static * @params {UI.Color} color - Smartface Color Object, without gradient * @returns {tinycolor} * @see {@link https://github.com/bgrins/TinyColor|TinyColor} */ export declare function tinycolor(color: Color): InstanceType; declare const _default: { rgb: typeof rgb; rgba: typeof rgba; argb: typeof argb; tinycolor: typeof tinycolor; }; export default _default;