import { type GeometryGuide } from './guides.js'; export interface GeometryPointExpression { readonly x: string; readonly y: string; } export type GeometryCommand = { readonly op: 'moveTo' | 'lnTo' | 'quadBezTo' | 'cubicBezTo'; readonly points: readonly GeometryPointExpression[]; } | { readonly op: 'arcTo'; readonly wR: string; readonly hR: string; readonly stAng: string; readonly swAng: string; } | { readonly op: 'close'; }; export interface GeometryPath { readonly w?: string; readonly h?: string; readonly fill?: string; readonly stroke?: string; readonly extrusionOk?: string; readonly commands: readonly GeometryCommand[]; } export interface GeometryDefinition { readonly avLst?: readonly GeometryGuide[]; readonly gdLst?: readonly GeometryGuide[]; readonly pathLst: readonly GeometryPath[]; } export interface GeometryExtent { readonly width: number; readonly height: number; } export type BuiltGeometryCommand = { readonly op: 'moveTo' | 'lineTo'; readonly x: number; readonly y: number; } | { readonly op: 'quadraticCurveTo'; readonly cpx: number; readonly cpy: number; readonly x: number; readonly y: number; } | { readonly op: 'bezierCurveTo'; readonly cp1x: number; readonly cp1y: number; readonly cp2x: number; readonly cp2y: number; readonly x: number; readonly y: number; } | { readonly op: 'ellipse'; readonly cx: number; readonly cy: number; readonly rx: number; readonly ry: number; readonly startAngle: number; readonly sweepAngle: number; } | { readonly op: 'closePath'; }; export interface BuiltGeometryPath { readonly fill: boolean; readonly stroke: boolean; readonly commands: readonly BuiltGeometryCommand[]; } /** Evaluates a preset or inline `a:custGeom` definition into canvas-neutral path commands. */ export declare function buildGeometryPaths(definition: GeometryDefinition, extent: GeometryExtent, adjustments?: Readonly>): readonly BuiltGeometryPath[]; //# sourceMappingURL=path.d.ts.map