export type ColorDescriptor = { type: 'color'; red: number; green: number; blue: number; alpha: number; }; export type ColorStopDescriptor = { position: number; color: ColorDescriptor; }; export type LinearGradientDescriptor = { type: 'gradient'; gradientType: 'linear'; angle: number; stops: ColorStopDescriptor[]; }; export type RadialGradientDescriptor = { type: 'gradient'; gradientType: 'radial'; angle: number; stops: ColorStopDescriptor[]; }; export type GradientDescriptor = LinearGradientDescriptor | RadialGradientDescriptor; export type SVGColorStop = { offset: number; stopColor: string; stopOpacity: number; }; export type SVGLinearGradientDescriptor = { type: 'linearGradient'; attrs: { gradientUnits: 'objectBoundingBox'; x1: string; y1: string; x2: string; y2: string; }; stops: SVGColorStop[]; }; export type SVGRadialGradientDescriptor = { type: 'radialGradient'; attrs: { gradientUnits: 'objectBoundingBox'; cx: string; cy: string; r: string; fx: string; fy: string; }; stops: SVGColorStop[]; }; export type SVGGradientDescriptor = SVGLinearGradientDescriptor | SVGRadialGradientDescriptor; export declare function convertGradientToSVG(gradient: GradientDescriptor): SVGGradientDescriptor; //# sourceMappingURL=fill.d.ts.map