import { DependencyList, EffectCallback, FocusEvent, Ref, useEffect } from 'react'; export declare function useAnimationCls(): { spinCls: string; }; /** 管理 focus 状态 */ export declare function useFocused(extraHandlers?: { onFocus?: (e: FocusEvent) => void; onBlur?: (e: FocusEvent) => void; }, disabled?: boolean, initialValue?: boolean): { focused: boolean; focusedHandlers: { onFocus: (e: FocusEvent) => void; onBlur: (e: FocusEvent) => void; }; }; /** 将多个 ref 合并成一个 */ export declare function useRefs(...refs: Array | undefined>): Ref; /** 支持受控或不受控输入的 value 逻辑 */ export declare function useValue({ valueFromProps, defaultValue, onChange }: { valueFromProps?: V; defaultValue: V; onChange?: (v: V, ...restV: R[]) => void; }): { value: V; setValue: (v: V, ...restV: R[]) => void; }; export declare function useUpdate(effect: EffectCallback, deps?: DependencyList): void; /** 获取当前组件实例是否存活(是否 mounted)的信息 */ export declare function useIsMounted(): import("react").MutableRefObject; /** * 更安全的 useState,防止组件 unmount 后仍然被 setState 导致报错 * > 使用此方法只能 suppress 错误信息,潜在的内存泄漏问题仍无法避免,需要确定用法后使用 */ export declare function useSafeState(initial: S | (() => S)): readonly [S, (nextState: S) => void]; export declare const useIsomorphicLayoutEffect: typeof useEffect; declare type Fn = (...args: A) => R; export declare function useUnstableEvent(fn: Fn): Fn; export declare function useForceUpdate(): () => void; export {};