import type { FabricObject } from '../shapes/Object/FabricObject'; import type { LoadImageOptions } from '../util'; import type { CSSRules, TSvgReviverCallback } from './typedefs'; import type { ParsedViewboxTransform } from './applyViewboxTransform'; type StorageType = { fill: SVGGradientElement; stroke: SVGGradientElement; clipPath: Element[]; }; type NotParsedFabricObject = FabricObject & { fill: string; stroke: string; clipPath?: string; clipRule?: CanvasFillRule; }; export declare class ElementsParser { elements: Element[]; options: LoadImageOptions & ParsedViewboxTransform; reviver?: TSvgReviverCallback; regexUrl: RegExp; doc: Document; clipPaths: Record; gradientDefs: Record; cssRules: CSSRules; constructor(elements: Element[], options: LoadImageOptions & ParsedViewboxTransform, reviver: TSvgReviverCallback | undefined, doc: Document, clipPaths: Record); parse(): Promise>; createObject(el: Element): Promise; extractPropertyDefinition(obj: NotParsedFabricObject, property: 'fill' | 'stroke' | 'clipPath', storage: Record): StorageType[typeof property] | undefined; resolveGradient(obj: NotParsedFabricObject, el: Element, property: 'fill' | 'stroke'): void; resolveClipPath(obj: NotParsedFabricObject, usingElement: Element, exactOwner?: Element): Promise; } export {}; //# sourceMappingURL=elements_parser.d.ts.map