/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import * as React from 'react'; /** * @hidden */ export type AsyncFocusBlurArgs = { onFocus?: (...event: T) => void; onBlur?: (...event: T) => void; /** * @hidden */ onSyncFocus?: (event: React.FocusEvent) => void; /** * @hidden */ onSyncBlur?: (event: React.FocusEvent) => void; }; /** * An utility function for asynchronous focus/blur handling. * * By default, the `onFocus` and `onBlur` callbacks are called every time a child components receives/loses focus. * Use this utility hook for scenarios where you need to know if the parent has received focus for the first time, or completely lost focus. * * @returns */ export declare function useAsyncFocusBlur({ onFocus, onBlur, onSyncFocus, onSyncBlur }: AsyncFocusBlurArgs): AsyncFocusBlurArgs;