import type { AABB, TextStyleProps } from '@antv/g';
import type { PathArray } from '@antv/util';
import type { CardinalPlacement } from '../types';
/**
* 计算文本位置样式
*
* Calculate text position style
* @param bounds - 外包围盒 | contour bounds
* @param placement - 位置 | placement
* @param offsetX - x轴偏移 | x-axis offset
* @param offsetY - y轴偏移 | y-axis offset
* @param closeToContour - 标签位置是否贴合轮廓 | whether the label position is close to the contour
* @param path - 路径 | path
* @param autoRotate - 是否跟随轮廓旋转 | whether to rotate with the contour
* @returns 文本样式 | text style
*/
export declare function getPolygonTextStyleByPlacement(bounds: AABB, placement: CardinalPlacement | 'center', offsetX: number, offsetY: number, closeToContour: boolean, path: PathArray | string, autoRotate: boolean): Partial;