import type { LegacyRef } from 'react';
/**
 * This hook handles a11y focus management closing of the action popover
 * @param ref - pass this ref to button for focus to be returned once popover is closed
 * @param onClose - callback to trigger the focus on popover close
 * @public
 */
export declare function useLegendAction<T extends HTMLElement>(): [ref: LegacyRef<T>, onClose: () => void];
//# sourceMappingURL=use_legend_action.d.ts.map