/** * Inverts a color's red, green, and blue channels, keeping its alpha, and * returns the result as an `rgba` string. This matches Sass's `invert`. * * `weight` controls how far to go toward the inverse: `1` (the default) fully * inverts the color, `0` returns it unchanged, and `0.5` always gives gray. * Weights outside 0 to 1 are clamped to that range. A weight that is not a * finite number (`NaN` or `Infinity`) throws a `RangeError`. * * ```js * invert('red'); // 'rgba(0, 255, 255, 1)' * invert('#336699', 0.25); // 'rgba(89, 115, 140, 1)' * ``` * * @param color The input color. * @param weight How much to invert, given as a decimal between 0 and 1. * @returns The inverted color as an `rgba` string. */ declare function invert(color: string, weight?: number): string; export default invert;