/** * Normalized representation of a parsed CSS-like linear gradient string. */ export interface ParseGradientResult { /** * Ordered color stops expressed as CSS color strings and numeric stop positions. * * Percent-based stops are normalized to the `[0, 1]` range. Pixel stops are preserved as pixel values. * Missing stop values fall back to evenly distributed positions across the gradient definition. */ colorStops: { color: string; stop: number; }[]; } /** * Parses a gradient string into a lightweight structure that can be consumed by canvas/Pixi helpers. * * Invalid or non-gradient color strings are treated as unsupported input and return `null` * instead of throwing, which makes the function safe to use as a feature probe. * * @param colorInput CSS gradient string to parse. * @returns Parsed gradient data, or `null` when the input is not recognized as a gradient. */ export declare function parseGradient(colorInput: string): ParseGradientResult | null;