UNPKG

474 BTypeScriptView Raw
1import { CoreTypes } from '../../core-types';
2import { Color } from '../../color';
3import type { LinearGradient as CSSLinearGradient } from '../../css/parser';
4export interface ColorStop {
5 color: Color;
6 offset?: CoreTypes.LengthPercentUnit;
7}
8export declare class LinearGradient {
9 angle: number;
10 colorStops: ColorStop[];
11 static parse(value: CSSLinearGradient): LinearGradient;
12 static equals(first: LinearGradient, second: LinearGradient): boolean;
13}