/** @internal */ export interface ContainerSize { /** The width of the container. */ width: number; /** The height of the container. */ height: number; } /** * Child props that need to be spread on each child for proper measurment * @internal */ export type UseMeasureChildrenChildProps = { /** * Unique child id used to identify the child */ 'data-id'?: string; }; /** @internal */ export type UseMeasureChildrenReturnType = { /** * CallbackRef for the container element containing the children to be measured */ containerRef: (node: T) => void; /** * Contains an entry for each child with its corresponding measurements. * The unique data-id is used as a key. */ measurements: { [key: string]: ContainerSize | undefined; }; /** * Array of child props that need to be spread on each child for proper measurement */ childProps: UseMeasureChildrenChildProps[]; }; /** * The hook _useMeasureChildren can be used to measure each direct child in a container. * @internal */ export declare const useMeasureChildren: () => UseMeasureChildrenReturnType;