import type { DisplayObject } from '@antv/g';
/**
* 获取图形的所有子元素
*
* Get all the child elements of the shape
* @param shape - 图形元素 | shape
* @returns 子元素数组 | child elements array
*/
export declare function getDescendantShapes(shape: T): DisplayObject[];
/**
* 获取图形的所有祖先元素
*
* Get all the ancestor elements of the shape
* @param shape - 图形元素 | shape
* @returns 祖先元素数组 | ancestor elements array
*/
export declare function getAncestorShapes(shape: T): DisplayObject[];