/** A 2D point in pixel coordinates relative to the shape's top-left origin. */ export interface CalloutPoint { x: number; y: number; } /** The result of computing callout leader line geometry. */ export interface CalloutLeaderLineGeometry { /** * Ordered list of points forming the callout leader line. * For callout1: 2 points (start, end). * For callout2: 3 points (start, bend, end). * For callout3: 4 points (start, bend1, bend2, end). */ points: CalloutPoint[]; /** Whether the shape variant has a visible border (bordercallout, accentbordercallout). */ hasBorder: boolean; /** Whether the shape variant has an accent bar (accentcallout, accentbordercallout). */ hasAccent: boolean; } /** * Returns true if the given shape type name is a callout shape with a leader line. * * @param shapeType - The OOXML preset geometry name (case-insensitive). */ export declare function isCalloutShape(shapeType: string | undefined): boolean; /** * Returns the tier (1, 2, or 3) for the callout shape, indicating the number * of line segments. Returns 0 if the shape type is not a callout. */ export declare function getCalloutTier(shapeType: string): 0 | 1 | 2 | 3; /** * Computes the callout leader line geometry for a given callout shape element. * * @param shapeType - The OOXML preset geometry name. * @param width - Shape width in pixels. * @param height - Shape height in pixels. * @param adjustments - Shape adjustment values record (from `shapeAdjustments`). * @returns The computed leader line geometry, or `null` if not a callout shape. */ export declare function getCalloutLeaderLineGeometry(shapeType: string, width: number, height: number, adjustments?: Record): CalloutLeaderLineGeometry | null; /** * Builds an SVG path `d` attribute string for the callout leader line. * * @param geometry - The computed callout leader line geometry. * @returns An SVG path data string (e.g. "M 10 20 L 30 40 L 50 60"). */ export declare function buildCalloutLeaderLineSvgPath(geometry: CalloutLeaderLineGeometry): string; /** * Computes the SVG viewBox bounds for a callout shape including the leader line. * The leader line can extend beyond the shape boundary (negative coordinates * or coordinates > width/height), so the viewBox must be expanded. * * @param width - Shape width in pixels. * @param height - Shape height in pixels. * @param geometry - The callout leader line geometry. * @param padding - Extra padding in pixels around the bounds (default 2). * @returns The viewBox bounds as `{ minX, minY, viewWidth, viewHeight }`. */ export declare function getCalloutViewBoxBounds(width: number, height: number, geometry: CalloutLeaderLineGeometry, padding?: number): { minX: number; minY: number; viewWidth: number; viewHeight: number; }; //# sourceMappingURL=callout-geometry.d.ts.map