export declare const customEqualForFunction: (value: any, other: any) => boolean; /** * 兼容 React17/18 的 startTransition。 * - React18+: 使用原生 startTransition * - React17 : 直接执行回调 */ export declare function compatStartTransition(cb: () => void): void; /** * 判断一个值是否是空值 * 空值 或者 仅包含空值的数组视为空 */ export declare const isEmpty: (value: any, emptyValue?: string) => boolean; /** * 判断一个元素是否触发了省略号(文本溢出) * 如果元素设置为单行(white-space: nowrap)则比较 scrollWidth 与 clientWidth, * 如果是多行文本(例如使用 -webkit-line-clamp 实现多行截断)则比较 scrollHeight 与 clientHeight。 * @param {HTMLElement} element 要检测的元素 * @returns {boolean} 如果内容溢出返回 true,否则返回 false */ export declare const isEllipsisActive: (element: Element) => boolean; export declare const useFocus: (element: Element) => boolean;