import { HSLAColor, HSLColor, RGBAColor, RGBColor } from "../models.mjs"; //#region src/color/space/rgb.d.ts declare function convertRgbToHex(rgb: RGBAColor | RGBColor, alpha: boolean): string; declare function convertRgbToHsla(value: unknown): HSLAColor; declare function getRgbValue(value: Record): RGBColor; /** * Convert an _RGB(A)_ color to a hex color _(with optional alpha channel, i.e., opacity)_ * * _If the value is unable to be converted, a black hex color will be returned_ * * @param rgb _RGB(A)_ color * @param alpha Include alpha channel _(opacity)_? _(defaults to `false`)_ * @returns Hex color string */ declare function rgbToHex(rgb: RGBAColor | RGBColor, alpha?: boolean): string; /** * Convert an _RGB(A)_ color to an _HSL_ color * * _If the value is unable to be converted, a black HSL color will be returned_ * * _Thanks, https://github.com/color-js/color.js/blob/main/src/spaces/hsl.js#L26_ * * @param rgb _RGB(A)_ color * @returns _HSL_ color */ declare function rgbToHsl(rgb: RGBAColor | RGBColor): HSLColor; /** * Convert an _RGB(A)_ color to an _HSLA_ color * * _If the value is unable to be converted, a black _HSLA_ color with an alpha channel (opacity) of `0` will be returned_ * * _Thanks, https://github.com/color-js/color.js/blob/main/src/spaces/hsl.js#L26_ * * @param rgb _RGB(A)_ color * @returns _HSLA_ color */ declare function rgbToHsla(rgb: RGBAColor | RGBColor): HSLAColor; //#endregion export { convertRgbToHex, convertRgbToHsla, getRgbValue, rgbToHex, rgbToHsl, rgbToHsla };