/** `label` or `labelledBy` names the scroller; `keepRole` stops it taking role=region. */ export type ScrollableRegionOptions = { label?: string; labelledBy?: string; keepRole?: boolean; }; /** Attributes to spread on a scroller; empty unless it overflows with nothing focusable inside. */ export type ScrollableRegionProps = { tabIndex?: 0; role?: "region"; "aria-label"?: string; "aria-labelledby"?: string; }; export declare function useScrollableRegion({ label, labelledBy, keepRole, }?: ScrollableRegionOptions): { ref: (node: T | null) => void; props: ScrollableRegionProps; };