import { type FocusNode } from "./accessibility-focus.js"; /** A web key event, as react-native-web hands it to a row (RN's types omit onKeyDown). */ export interface RowKeyEvent { key: string; preventDefault: () => void; } /** What a row spreads onto its Pressable (the key handler rides a cast: RN's types omit it). */ export interface RowFocusProps { ref: (node: FocusNode) => void; focusable: boolean; tabIndex: number; onKeyDown: (event: RowKeyEvent) => void; } export declare function useRowFocus(count: number): { /** Move focus into row `index` (call it from AnchoredOverlay's onCardMount). */ enter: (index: number) => void; /** * The focus props for row `index`; `activate` runs on Enter and Space with the key * event (what react-native-web itself hands a Pressable's onPress for a key press). */ rowProps: (index: number, activate: (event: RowKeyEvent) => void) => RowFocusProps; }; //# sourceMappingURL=use-row-focus.d.ts.map