import { Selection } from "../types.cjs"; import { ReactNode } from "react"; export interface UseActionBarProps { /** * The controlled set of selected keys. */ selectedKeys?: Selection; /** * The initial selected keys (uncontrolled). */ defaultSelectedKeys?: Selection; /** * Handler called when the selection changes. */ onSelectionChange?: (keys: Selection) => void; /** * Render function that receives the current selection and returns an ActionBar element. * When provided, the Table will manage selection wiring automatically. */ actionBar?: (selectedKeys: Selection) => ReactNode; } export interface UseActionBarReturn { /** Pass to Table's `selectedKeys` prop. */ selectedKeys: Selection; /** Pass to Table's `onSelectionChange` prop. */ onSelectionChange: (keys: Selection) => void; /** Measured height of the ActionBar in pixels. */ actionBarHeight: number; /** The ActionBar overlay element to render as a sibling, or `null` when no actionBar. */ actionBarOverlay: ReactNode; } export declare const useActionBar: ({ selectedKeys: controlledKeys, defaultSelectedKeys, onSelectionChange, actionBar }: UseActionBarProps) => UseActionBarReturn;