import React from 'react'; /** * Universal layout effect that uses useLayoutEffect in browser environments * and falls back to useEffect in SSR environments */ export declare const useUniversalLayoutEffect: typeof React.useEffect; /** * A React hook that implements the useEffectEvent pattern from React RFC. * This hook allows you to define an event handler that can access the latest props/state * without triggering effect dependency lists when the handler changes. * @see https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md#internal-implementation * @react https://react.dev/learn/separating-events-from-effects */ export declare function useEffectEvent(callback: undefined): (...args: TArgs) => TReturn; export declare function useEffectEvent(callback: (...args: TArgs) => TReturn): (...args: TArgs) => TReturn; export declare function useEffectEvent(callback: ((...args: TArgs) => TReturn) | undefined): (...args: TArgs) => TReturn | undefined;