///
///
declare type UseDynamicHeightParams = {
/** total items count */
itemCount: number;
/** max-height of container */
maxContainerHeight?: number | '100%';
/** trigger when container height need change */
onContainerHeightChange?: (number: number) => void;
};
/**
* auto calculate container height
*/
export declare const useDynamicHeight: ({ itemCount, maxContainerHeight, onContainerHeightChange, }: UseDynamicHeightParams) => {
containerHeighRef: import("react").MutableRefObject;
totalListHeightChanged: (height: number) => void;
style: {
height: import("react").ReactText;
};
};
export {};