import type { Matrix } from '@flighthq/geometry/contract'; import type { Path } from '@flighthq/path/contract'; import type { XmlElement } from '@flighthq/xml/contract'; import type { SvgGradient, SvgImportContext } from './contract.scene2d-formats-types.ts'; export declare function createSvgGradientMatrix(gradient: Readonly, path: Readonly): Matrix; /** * SVG gradients: the stop list, the spread, and the matrix that places a gradient over a shape. * * ★ TWO UNIT SYSTEMS, AND THE DEFAULT ONE NEEDS THE SHAPE. `gradientUnits="userSpaceOnUse"` places a gradient in the * document's coordinates; anything else — including the default — places it in a 0..1 box over the shape being filled, * so a gradient cannot be resolved without the path it is painting, and a zero-area box has no gradient at all rather * than an infinitely thin one. (`clipPathUnits` is the same idea for clipping and is read by the clip module, which is * the only thing that asks.) * * Only the geometry family paints, so nothing else in the importer reaches this: a text-or-image-only build links no * gradient reading at all. */ export declare function hasZeroAreaSvgGradientBox(gradient: Readonly, path: Readonly): boolean; export declare function parseSvgGradient(element: Readonly, context: SvgImportContext): SvgGradient | null; export declare function resolveSvgGradient(value: string, context: Readonly): SvgGradient | null; //# sourceMappingURL=svgGradient.d.ts.map