import type { Context } from '../context/context.js'; import { NonRenderedNode } from './nonrenderednode.js'; import type { Rect } from '../utils/geometry.js'; import type { SvgNode } from './svgnode.js'; import type { Matrix, ShadingPatternType } from '../jspdf.js'; import type { StyleSheets } from '../context/stylesheets.js'; export declare abstract class Gradient extends NonRenderedNode { private readonly pdfGradientType; private contextColor; private stops; protected constructor(pdfGradientType: ShadingPatternType, element: Element, children: SvgNode[]); apply(context: Context): Promise; abstract getCoordinates(context: Context): number[]; getStops(styleSheets: StyleSheets): StopData[]; protected getBoundingBoxCore(context: Context): Rect; protected computeNodeTransformCore(context: Context): Matrix; isVisible(parentVisible: boolean, context: Context): boolean; /** * Convert percentage to decimal */ static parseGradientOffset(value: string): number; } export interface StopData { color: number[]; opacity: number; offset: number; } //# sourceMappingURL=gradient.d.ts.map