import type { GradientStop } from '@mapples/types'; /** One wedge of a conic gradient: an SVG path and its colour. */ export interface ConicWedge { path: string; color: string; opacity: number; } /** How many wedges a full sweep is drawn with: 3° each, smooth to the eye. */ export declare const CONIC_WEDGES = 120; type Rgba = [number, number, number, number]; /** * A stop colour as red, green, blue (0–255) and alpha (0–1). Stop colours * are literals (`#rgb`, `#rrggbb`, with alpha, `rgb()`, `rgba()`, * `transparent`); anything else throws, like a colour that was never * resolved. */ export declare const parseStopColor: (color: string) => Rgba; /** * The wedges that draw a conic gradient in a box: each a thin triangle from * the centre to a circle that covers the whole box, in the gradient's colour * at that angle. Fully transparent wedges are left out. * * @param stops - The gradient's stops (at least two) * @param width - The box's width in points * @param height - The box's height in points * @param center - The centre in normalized object space * @param angle - Degrees the sweep starts at; 0 points up * @param repeat - How many times the stops repeat around the circle */ export declare const conicWedges: (stops: GradientStop[], width: number, height: number, center: { x: number; y: number; }, angle: number, repeat: number) => ConicWedge[]; export {}; //# sourceMappingURL=conic.d.ts.map