/** * @author jingyu * @description 计算指定元素被子元素占据后的剩余高度 */ import React from 'react'; import { ReturnValue } from '../define'; type ElementType = string | React.MutableRefObject | null; type ConfigType = { element: ElementType; observer: boolean; }; type ElementConfigType = ElementType | ConfigType; interface Action { updateRestHeight: () => void; } /** * * @param container 容器, 如果是 string 表明是 dom 选择器, 否则是 dom-ref * @param children child 元素, 可以有多个, 类型同 container * @param offsets 自定义偏移量 * @returns ReturnValue */ declare function useRestHeight(container?: ElementConfigType, children?: Array, offsets?: number[]): ReturnValue; export { useRestHeight };