import type { FillStyle, Gradient, Pattern, Shadow, StrokeStyle } from '../types'; export declare function isGradient(style: FillStyle | StrokeStyle): style is Gradient; export declare function isPattern(style: FillStyle | StrokeStyle): style is Pattern; export declare function gradientToCss(g: Gradient): string; export declare function createSvgGradient(doc: Document, id: string, g: Gradient): SVGLinearGradientElement | SVGRadialGradientElement; export declare function shadowToCss(shadow: Shadow): string; export declare function createSvgShadowFilter(doc: Document, id: string, shadow: Shadow): SVGFilterElement; export declare function setCanvasFill(ctx: CanvasRenderingContext2D, fill: FillStyle, patternCache?: Map): void; export declare function setCanvasStroke(ctx: CanvasRenderingContext2D, stroke: StrokeStyle): void; export declare function fillStyleRef(style: FillStyle | StrokeStyle, prefix: string, id: string): string;