import { RgbaColor, RgbColor } from '../../meta/color'; /** * Returns an RgbColor or RgbaColor object. This utility function is only useful * if want to extract a color component. With the color util `toColorString` you * can convert a RgbColor or RgbaColor object back to a string. * * @example * // Assigns `{ red: 255, green: 0, blue: 0 }` to color1 * const color1 = 'rgb(255, 0, 0)'; * // Assigns `{ red: 92, green: 102, blue: 112, alpha: 0.75 }` to color2 * const color2 = 'hsla(210, 10%, 40%, 0.75)'; */ export declare function parseToRgb(color: string): RgbColor | RgbaColor;