/// /// /// import type { Container } from '../lib/base'; export type SvgGroup = Svg | SvgG | SvgUseG | SvgUseSymbol | SvgPattern | SvgShapePattern | SvgUseShapePattern; export class SvgBuild { static isContainer(object: unknown): object is SvgGroup; static isElement(object: unknown): object is SvgElement; static isShape(object: unknown): object is SvgShape; static isImage(object: unknown): object is SvgImage; static isPaint(object: unknown): object is SvgPaint; static isUse(object: unknown): object is SvgUse; static isAnimate(object: unknown): object is SvgAnimate; static isAnimateTransform(object: unknown): object is SvgAnimateTransform; static asSvg(object: unknown): object is Svg; static asG(object: unknown): object is SvgG; static asImage(object: unknown): object is SvgImage; static asImageText(object: unknown): object is SvgImageText; static asPattern(object: unknown): object is SvgPattern; static asShapePattern(object: unknown): object is SvgShapePattern; static asUseG(object: unknown): object is SvgUseG; static asUseShape(object: unknown): object is SvgUseShape; static asUseShapePattern(object: unknown): object is SvgUseShapePattern; static asUseSymbol(object: unknown): object is SvgUseSymbol; static asPath(object: unknown): object is SvgPath; static asSet(object: unknown): object is SvgAnimation; static asAnimate(object: unknown): object is SvgAnimate; static asAnimateTransform(object: unknown): object is SvgAnimateTransform; static asAnimateMotion(object: unknown): object is SvgAnimateMotion; static findViewport(object: SvgElement): Svg | undefined; static drawLine(x1: number, y1: number, x2?: number, y2?: number, precision?: number): string; static drawRect(rect: BoxRect | DOMRect, options?: SvgDrawRectOptions): string; static drawRect(width: number, height: number, x: number, y: number, options: SvgDrawRectOptions): string; static drawRect(width: number, height?: number | SvgDrawRectOptions, x?: number, y?: number, precision?: number): string; static drawCircle(cx: number, cy: number, r: number, precision?: number): string; static drawEllipse(cx: number, cy: number, rx: number, ry?: number, precision?: number): string; static drawPolygon(values: Point[] | DOMPoint[], precision?: number): string; static drawPolyline(values: Point[] | DOMPoint[], precision?: number): string; static drawPath(values: SvgPathCommand[], precision?: number): string; static drawShapes(element: SVGGraphicsElement, values: string | string[], options?: SvgDrawShapesOptions): SvgShapePath[]; static drawRefit(element: SVGGraphicsElement | string, parent?: SvgContainer | null, precision?: number): string; static transformRefit(value: string, options?: SvgTransformRefitOptions): string; static toOffsetPath(value: string, rotation?: string, options?: SvgOffsetPathOptions): SvgOffsetPath[]; static toPathCommands(value: string): SvgPathCommand[]; static toPathPoints(values: SvgPathCommand[]): SvgPoint[]; static syncPath(values: SvgPathCommand[], points: SvgPoint[], transformed: boolean): SvgPathCommand[]; static syncPath(values: SvgPathCommand[], points: SvgPoint[], options?: SvgSyncPathOptions): SvgPathCommand[]; static filterTransforms(transforms: SvgTransform[], exclude?: number[]): SvgTransform[]; /** @deprecated transformPoints */ static applyTransforms(transforms: SvgTransform[], points: Point[], origin?: Point | null): SvgPoint[]; /** @deprecated TRANSFORM.fromList */ static convertTransforms(transforms: SVGTransformList): SvgTransform[]; static convertPoints(values: number[]): Point[]; static clonePoints(values: SvgPoint[] | SVGPointList): SvgPoint[]; static minMaxOf(values: SvgPoint[]): BoxRect; static centerOf(...values: Point[]): Point[]; static boxRectOf(value: string | DOMRect, strokeWidth?: number | string): BoxRectDimension; static transformPoints(values: SvgPoint[], transforms: SvgTransform[], options?: SvgTransformPointsOptions): SvgPoint[]; static parsePoints(value: string): Point[]; static parseCoordinates(value: string): number[]; } export interface SvgContainerBuild { build(options?: SvgBuildOptions): void; } export interface SvgBaseVal extends SvgElement { setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; } export interface SvgUse extends SvgElement, SvgViewRect, SvgBaseVal { readonly useElement: SVGUseElement; } export interface SvgView extends SvgElement, SvgTransformable { name: string; transformed: SvgTransform[] | null; readonly opacity: string; readonly visible: boolean; readonly transforms: SvgTransform[]; readonly animations: SvgAnimation[]; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; } export interface SvgViewRect extends SvgBaseVal, SvgRect { rectElement?: SvgRectElement | SVGTextElement | null; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; } export interface SvgViewBox extends SvgView, SvgViewRect, SvgBaseVal, SvgSynchronize { viewBox: DOMRect; } export interface SvgPaint { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokeWidth: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; useParent?: SvgUse | null; patternParent?: SvgShapePattern | null; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; resetPaint(): void; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; convertLength(value: string, dimension?: number | DimensionAttr): number; } export interface SvgSynchronize { getAnimateShape(element: SVGGraphicsElement): SvgAnimate[]; getAnimateTransform(options?: SvgSynchronizeOptions): SvgAnimateTransform[]; getAnimateViewRect(animations?: SvgAnimation[]): SvgAnimate[]; animateSequentially(animations: SvgAnimation[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; animateSequentially(animations: SvgAnimation[], transforms: SvgAnimateTransform[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; } export interface SvgTransformable { transformed: SvgTransform[] | null; readonly transforms: SvgTransform[]; } export interface SvgTransformPath extends SvgTransformable { get transformOrigin(): Point | null; } export class SvgElement implements SvgContainerBuild { parent: SvgContainer | null; viewport: Svg | null; readonly element: SVGGraphicsElement; readonly instanceType: number; build(options?: SvgBuildOptions): void; synchronize(options?: SvgSynchronizeOptions): void; constructor(element: SVGGraphicsElement); } export class SvgContainer extends Container implements SvgElement { /** @deprecated SvgBuild.getViewport */ static getViewport(container: SvgContainer): Svg | null; parent: SvgContainer | null; viewport: Svg | null; readonly element: SvgContainerElement; readonly instanceType: number; readonly aspectRatio: SvgAspectRatio; add(item: SvgView, viewport?: Svg | null): this; refitX(value: number): number; refitY(value: number): number; refitSize(value: number): number; refitPoints(values: SvgPoint[]): SvgPoint[]; refitRect(x: number, y: number, width: number, height: number): DOMRect; getPathAll(cascade?: boolean): string[]; hasViewBox(): boolean; findViewBox(element?: SVGElement): SVGSVGElement | SVGSymbolElement | undefined; findViewBoxContainer(container?: SvgContainer): Svg | SvgUseSymbol | undefined; clipViewBox(x: number, y: number, width: number, height: number, precision?: number, documentRoot?: boolean): void; build(options?: SvgBuildOptions): void; synchronize(options?: SvgSynchronizeOptions): void; setAspectRatio(container?: Svg | SvgUseSymbol | null, options?: SvgAspectRatioOptions): void; set clipRegion(value); get clipRegion(): string; get requireRefit(): boolean; constructor(element: SvgContainerElement); } export class Svg extends SvgContainer implements SvgViewBox { rectElement: SvgRectElement | SVGTextElement | null; transformed: SvgTransform[] | null; precision?: number; /** @deprecated keyframes */ keyframesMap?: KeyframesMap; shadowHost: ShadowRoot | null; readonly element: SVGSVGElement; readonly documentRoot: boolean; readonly definitions: SvgDefinitions; findFill(value: string | SVGGraphicsElement): SVGPatternElement | undefined; findFillPattern(value: string | SVGGraphicsElement): SvgGradient | undefined; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; getAnimateShape(element: SVGGraphicsElement): SvgAnimate[]; getAnimateTransform(options?: SvgSynchronizeOptions): SvgAnimateTransform[]; getAnimateViewRect(animations?: SvgAnimation[]): SvgAnimate[]; animateSequentially(animations: SvgAnimation[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; animateSequentially(animations: SvgAnimation[], transforms: SvgAnimateTransform[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; set contentMap(value); get contentMap(): StringMap | null; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get viewBox(): DOMRect; get keyframes(): KeyframesMap | null; get visible(): boolean; get opacity(): string; constructor(element: SVGSVGElement, documentRoot?: boolean); } export class SvgG extends SvgContainer implements SvgView, SvgPaint { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; useParent: SvgUse | null; transformed: SvgTransform[] | null; readonly element: SVGGElement; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; resetPaint(): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; set strokeWidth(value); get strokeWidth(): string; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get visible(): boolean; get opacity(): string; constructor(element: SVGGElement); } export class SvgUseG extends SvgG implements SvgUse { rectElement: SvgRectElement | SVGTextElement | null; readonly useElement: SVGUseElement; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; constructor(element: SVGGElement, useElement: SVGUseElement); } export class SvgShape extends SvgElement implements SvgView, SvgSynchronize, SvgTransformPath { transformed: SvgTransform[] | null; readonly element: SVGGeometryElement; synchronize(options?: SvgSynchronizeOptions): void; getAnimateShape(element: SVGGraphicsElement): SvgAnimate[]; getAnimateTransform(options?: SvgSynchronizeOptions): SvgAnimateTransform[]; getAnimateViewRect(animations?: SvgAnimation[]): SvgAnimate[]; animateSequentially(animations: SvgAnimation[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; animateSequentially(animations: SvgAnimation[], transforms: SvgAnimateTransform[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; setPath(): void; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; set path(value); get path(): SvgPath | null; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get transformOrigin(): Point | null; get visible(): boolean; get opacity(): string; constructor(element: SVGGraphicsElement, initialize?: boolean); } export class SvgUseShape extends SvgShape implements SvgBaseVal, SvgPaint, SvgUse { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; rectElement: SvgRectElement | SVGTextElement | null; useParent: SvgUse | null; readonly useElement: SVGUseElement; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; resetPaint(): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; synchronize(options?: SvgSynchronizeOptions): void; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; set strokeWidth(value); get strokeWidth(): string; constructor(element: SVGGraphicsElement, useElement: SVGUseElement, initialize?: boolean); } export class SvgImage extends SvgElement implements SvgView, SvgViewRect, SvgBaseVal { rotateAngle: number; transformed: SvgTransform[] | null; rectElement: SvgRectElement | SVGTextElement | null; readonly element: SVGImageElement | SVGUseElement | SVGTextElement; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setBaseValue(attr: string, value?: unknown): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; renderStatic(exclude?: number[] | boolean): void; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; get href(): string; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get visible(): boolean; get opacity(): string; constructor(element: SVGImageElement | SVGUseElement | SVGTextElement, imageElement?: SVGImageElement | SVGTextElement); } export class SvgImageText extends SvgImage implements SvgPaint { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; useParent: SvgUse | null; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; resetPaint(): void; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; renderCanvas(options?: SvgRenderCanvasOptions): [HTMLCanvasElement, boolean] | null; set strokeWidth(value); get strokeWidth(): string; constructor(element: SVGUseElement | SVGTextElement, imageElement?: SVGTextElement); } export class SvgPath implements SvgContainerBuild, SvgBaseVal, SvgPaint, SvgTransformPath { static transform(value: string, transforms: SvgTransform[], element?: SVGGeometryElement, precision?: number): string; static extrapolate(attr: string, value: string, values: string[], precision: number): string[]; static extrapolate(attr: string, value: string, values: string[], options?: SvgPathExtrapolateOptions | number): string[]; /** @deprecated options */ static extrapolate(attr: string, value: string, values: string[], transforms?: SvgTransform[] | null | SvgPathExtrapolateOptions | number, parent?: SvgShape | null, precision?: number): string[]; name: string; value: string; baseValue: string; color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; parent: SvgContainer | null; viewport: Svg | null; transformed: SvgTransform[] | null; transformResidual: SvgTransform[][] | null; useParent: SvgUse | null; patternParent: SvgShapePattern | null; readonly element: SVGGeometryElement; readonly instanceType: number; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; resetPaint(): void; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; build(options?: SvgBuildOptions): void; synchronize(options?: SvgSynchronizeOptions): void; draw(options?: SvgBuildOptions): string; draw(transforms: SvgTransform[] | null, options?: SvgBuildOptions): string; extendLength(data: SvgPathExtendData, precision?: number): SvgPathExtendData; flattenStrokeDash(valueArray: number[], valueOffset: number, totalLength: number, pathLength?: number): SvgPathExtendData; extractStrokeDash(animations?: SvgAnimation[], precision?: number): [SvgAnimation[] | undefined, SvgStrokeDash[] | undefined, string, string]; set strokeWidth(value); get strokeWidth(): string; get transforms(): SvgTransform[]; get pathLength(): number; get totalLength(): number; get transformOrigin(): Point | null; constructor(element: SVGGeometryElement); } export class SvgUseSymbol extends SvgContainer implements SvgViewBox, SvgPaint, SvgUse { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; transformed: SvgTransform[] | null; rectElement: SvgRectElement | SVGTextElement | null; useParent: SvgUse | null; readonly symbolElement: SVGSymbolElement | SVGSVGElement; readonly useElement: SVGUseElement; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; resetPaint(): void; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; getAnimateShape(element: SVGGraphicsElement): SvgAnimate[]; getAnimateTransform(options?: SvgSynchronizeOptions): SvgAnimateTransform[]; getAnimateViewRect(animations?: SvgAnimation[]): SvgAnimate[]; animateSequentially(animations: SvgAnimation[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; animateSequentially(animations: SvgAnimation[], transforms: SvgAnimateTransform[], path?: SvgPath | null, options?: SvgSynchronizeOptions): void; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; set strokeWidth(value); get strokeWidth(): string; get viewBox(): DOMRect; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get visible(): boolean; get opacity(): string; constructor(element: SVGSymbolElement | SVGSVGElement, useElement: SVGUseElement); } export class SvgPattern extends SvgContainer implements SvgView { transformed: SvgTransform[] | null; readonly element: SVGGraphicsElement; readonly patternElement: SVGPatternElement; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get visible(): boolean; get opacity(): string; constructor(element: SVGGraphicsElement, patternElement: SVGPatternElement); } export class SvgShapePattern extends SvgPattern implements SvgPaint { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; drawRegion: BoxRect | null; useParent: SvgUse | null; transformed: SvgTransform[] | null; patternParent: SvgShapePattern | null; readonly element: SVGGeometryElement; readonly patternElement: SVGPatternElement; readonly patternUnits: number; readonly patternContentUnits: number; readonly patternWidth: number; readonly patternHeight: number; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; resetPaint(): void; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; patternRefitX(value: number): number; patternRefitY(value: number): number; patternRefitPoints(values: SvgPoint[]): SvgPoint[]; set strokeWidth(value); get strokeWidth(): string; get offsetX(): number; get offsetY(): number; get tileWidth(): number; get tileHeight(): number; constructor(element: SVGGraphicsElement, patternElement: SVGPatternElement); } export class SvgUseShapePattern extends SvgShapePattern implements SvgViewRect, SvgUse { rectElement: SvgRectElement | SVGTextElement | null; readonly element: SVGGeometryElement; readonly useElement: SVGUseElement; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; constructor(element: SVGGeometryElement, useElement: SVGUseElement, patternElement: SVGPatternElement); } export class SvgPaintView extends SvgElement implements SvgView, SvgPaint, SvgViewRect, SvgBaseVal { color: string; fill: string; fillPattern: string; fillOpacity: string; fillRule: string; stroke: string; strokePattern: string; strokeOpacity: string; strokeLinecap: string; strokeLinejoin: string; strokeMiterlimit: string; strokeDasharray: string; strokeDashoffset: string; geometryBox: SvgGeometryBoxValue; clipPath: string; clipRule: string; computed: boolean; transformed: SvgTransform[] | null; setRect(): void; getValueAsString(attr: SvgRectAttr): string | null; getValueAsNumber(attr: SvgRectAttr): number; setPaint(d?: string[] | null | SvgBuildOptions, precision?: number | SvgBuildOptions): void; setAttribute(attr: string, element?: SVGGraphicsElement): void; getAttribute(attr: string, element?: SVGGraphicsElement): string; resetPaint(): void; getBoundingBox(paths?: string[] | DOMRect | null, geometryBox?: SvgGeometryBoxValue): DOMRect; getStrokeWidth(fallback: number): number; getStrokeWidth(method?: MathRounding, fallback?: number): number; convertLength(value: string, dimension?: number | DimensionAttr): number; setBaseValue(attr: string, value?: T): boolean; getBaseValue(attr: string, fallback?: T): T extends {} ? T : T | undefined; refitBaseValue(x: number, y: number, precision?: number, scaleX?: number, scaleY?: number): void; verifyBaseValue(attr: string, value?: unknown): number; getTransforms(element?: SVGGraphicsElement): SvgTransform[]; getAnimations(element?: SVGGraphicsElement): SvgAnimation[]; hasTransforms(): boolean; hasAnimations(): boolean; getTitle(lang?: string): string; getDesc(lang?: string): string; set name(value); get name(): string; set x(value); get x(): number; set y(value); get y(): number; set width(value); get width(): number; set height(value); get height(): number; get leftAligned(): boolean; get rightAligned(): boolean; get centerAligned(): boolean; get topAligned(): boolean; get middleAligned(): boolean; get bottomAligned(): boolean; get transforms(): SvgTransform[]; get animations(): SvgAnimation[]; get visible(): boolean; get opacity(): string; set strokeWidth(value); get strokeWidth(): string; constructor(element: SVGGraphicsElement); } export class SvgAnimation { static getClockTimes(value: string): number[]; static parseClockTime(value: string): number; fillMode: number; paused: boolean; synchronizeState: number; id: number; baseValue: string; replaceValue: string; companion?: NumberValue; shadowHost: ShadowRoot | null; readonly element: SVGGraphicsElement | null; readonly animationElement: SVGAnimationElement | null; readonly instanceType: number; setAttribute(attr: string, equality?: string): void; addState(...values: number[]): void; removeState(...values: number[]): void; hasState(...values: number[]): boolean; refitPoint(value: Point | null): void; set attributeName(value); get attributeName(): string; set delay(value); get delay(): number; set duration(value); get duration(): number; set to(value); get to(): string; set setterType(value); get setterType(): boolean; set fillBackwards(value); get fillBackwards(): boolean; set fillForwards(value); get fillForwards(): boolean; set fillFreeze(value); get fillFreeze(): boolean; set parent(value); get parent(): SvgView | SvgPath | null; set group(value); get group(): SvgAnimationGroup; get parentContainer(): SvgContainer | null; get fillReplace(): boolean; get precision(): number | undefined; constructor(element?: SVGGraphicsElement, animationElement?: SVGAnimationElement); constructor(animationElement: SVGAnimationElement); } export class SvgAnimate extends SvgAnimation { static KEYSPLINE_NAME: { 'ease': string; 'ease-in': string; 'ease-in-out': string; 'ease-out': string; 'linear': string; 'step-start': string; 'step-end': string; }; static getSplitValue(value: number, next: number, percent: number): number; static findTimingFunction(value: string): string; static fromStepTimingFunction(element: SVGElement, attributeName: string, keyTimes: number[], values: string[], keySpline: string, index: number): [number[], string[]] | null; static toFractionList(value: string, delimiter?: string, ordered?: boolean): number[]; type: number; from: string; additiveSum: boolean; accumulateSum: boolean; by: number; end: number; startValues: StringMap | null; synchronized?: NumberValue; readonly replaceType: Map; readonly animationElement: SVGAnimateElement | null; setCalcMode(attributeName?: string, mode?: string): void; insertAt(time: number, value: string, index?: number): void; convertToValues(keyTimes?: number[]): void; setGroupOrdering(value: SvgAnimationAttribute[]): void; getIntervalEndTime(leadTime: number, complete?: boolean): number; getTotalDuration(minimum?: boolean): number; set iterationCount(value); get iterationCount(): number; set values(value); get values(): string[]; set keyTimes(value); get keyTimes(): number[]; set keySplines(value); get keySplines(): string[] | null; set timingFunction(value); get timingFunction(): string; get timingValues(): unknown[] | null; set reverse(value); get reverse(): boolean; set alternate(value); get alternate(): boolean; set length(value); get length(): number; get valueTo(): string; get valueFrom(): string; get playable(): boolean; get fromToType(): boolean; get evaluateStart(): boolean; get evaluateEnd(): boolean; constructor(element?: SVGGraphicsElement, animationElement?: SVGAnimateElement); constructor(animationElement: SVGAnimateElement); } export class SvgAnimateTransform extends SvgAnimate { static toRotateList(values: string[]): number[][] | null; static toScaleList(values: string[]): number[][] | null; static toTranslateList(values: string[]): number[][] | null; static toSkewList(values: string[]): number[][] | null; transformFrom: string; transformOrigin?: Point[]; readonly animationElement: SVGAnimateTransformElement | null; setType(value: string): void; setResetValues(): void; expandToValues(): void; constructor(element?: SVGGraphicsElement, animationElement?: SVGAnimateTransformElement); constructor(animationElement: SVGAnimateTransformElement); } export class SvgAnimateMotion extends SvgAnimateTransform { motionPathElement: SVGGeometryElement | null; framesPerSecond: number; rotateData: NumberValue[] | null; positionData: NumberValue[] | null; readonly animationElement: SVGAnimateMotionElement | null; addKeyPoint(item: NumberValue): void; set path(value); get path(): string; set distance(value); get distance(): string; set rotate(value); get rotate(): string; set anchor(value); get anchor(): Point | null; set position(value); get position(): Point | null; get cssPath(): string; get offsetPath(): SvgOffsetPath[] | null; /** @deprecated rotateOutput */ get rotateValues(): number[] | null; get rotateOutput(): SvgRotateOrigin[] | null; get keyPoints(): number[]; get offsetLength(): number; constructor(element?: SVGGraphicsElement, animationElement?: SVGAnimateTransformElement); constructor(animationElement: SVGAnimateTransformElement); } export class SvgAnimationIntervalMap { static getGroupEndTime(item: SvgAnimationAttribute): number; static getKeyName(item: SvgAnimation): string; map: SvgAnimationIntervalAttributeMap; has(attr: string): boolean; get(attr: string, time: number, playing?: boolean): string | undefined; paused(attr: string, time: number): boolean; evaluateStart(item: SvgAnimate, fallback?: string): string[]; constructor(animations: SvgAnimation[], ...attrs: string[]); } export declare var SvgBaseVal: >(Base: T) => T & SvgBaseVal; export declare var SvgContainerBuild: >(Base: T) => T & SvgContainerBuild; export declare var SvgPaint: >(Base: T) => T & SvgPaint; export declare var SvgSynchronize: >(Base: T) => T & SvgSynchronize; export declare var SvgView: >(Base: T) => T & SvgView; export declare var SvgViewRect: >(Base: T) => T & SvgViewRect; export * as lib from './lib';