//#region src/lib/svg.d.ts declare function formatNumber(v: number, d: number, minify?: boolean): string; declare class Point { x: number; y: number; constructor(x: number, y: number); } declare class SvgPoint extends Point { itemReference: SvgItem; movable: boolean; constructor(x: number, y: number, movable?: boolean); } declare class SvgControlPoint extends SvgPoint { relations: Point[]; subIndex: number; constructor(point: Point, relations: Point[], movable?: boolean); } declare abstract class SvgItem { constructor(values: number[], relative: boolean); relative: boolean; values: number[]; previousPoint: Point; absolutePoints: SvgPoint[]; absoluteControlPoints: SvgControlPoint[]; static Make(rawItem: string[]): SvgItem; static MakeFrom(origin: SvgItem, previous: SvgItem, newType: string): SvgItem; protected refreshAbsolutePoints(origin: Point, previous: SvgItem | null): void; setRelative(newRelative: boolean): void; protected refreshAbsoluteControlPoints(origin: Point, previous: SvgItem | null): void; resetControlPoints(previousTarget: SvgItem): void; refresh(origin: Point, previous: SvgItem | null): void; translate(x: number, y: number, force?: boolean): void; scale(kx: number, ky: number): void; rotate(ox: number, oy: number, degrees: number, force?: boolean): void; targetLocation(): SvgPoint; setTargetLocation(pts: Point): void; setControlLocation(idx: number, pts: Point): void; controlLocations(): SvgControlPoint[]; getType(ignoreIsRelative?: boolean): string; asStandaloneString(): string; asString(decimals?: number, minify?: boolean, trailingItems?: SvgItem[]): string; } declare class SvgPath { path: SvgItem[]; constructor(path: string); translate(dx: number, dy: number): SvgPath; scale(kx: number, ky: number): SvgPath; rotate(ox: number, oy: number, degrees: number): SvgPath; setRelative(newRelative: boolean): this; delete(item: SvgItem): this; insert(item: SvgItem, after?: SvgItem): void; changeType(item: SvgItem, newType: string): SvgItem | null; asString(decimals?: number, minify?: boolean): string; targetLocations(): SvgPoint[]; controlLocations(): SvgControlPoint[]; setLocation(ptReference: SvgPoint, to: Point): void; refreshAbsolutePositions(): void; } //#endregion //#region src/lib/optimize-path.d.ts declare const optimizePath: (svg: SvgPath, { removeUselessCommands, removeOrphanDots, useShorthands, useHorizontalAndVerticalLines, useRelativeAbsolute, useReverse, useClosePath }: { removeUselessCommands?: boolean; removeOrphanDots?: boolean; useShorthands?: boolean; useHorizontalAndVerticalLines?: boolean; useRelativeAbsolute?: boolean; useReverse?: boolean; useClosePath?: boolean; }) => void; //#endregion //#region src/lib/path-parser.d.ts declare class PathParser { static components(type: string, path: string, cursor: number): [number, string[][]]; static parse(path: string): string[][]; } //#endregion //#region src/lib/reverse-path.d.ts declare const reversePath: (svg: SvgPath, subpathOfItem?: number) => void; //#endregion //#region src/lib/change-path-origin.d.ts declare const changePathOrigin: (svg: SvgPath, newOriginIndex: number, subpath?: boolean) => void; //#endregion export { PathParser, Point, SvgControlPoint, SvgItem, SvgPath, SvgPoint, changePathOrigin, formatNumber, optimizePath, reversePath }; //# sourceMappingURL=index.d.ts.map