
import { Key } from "@react-types/shared";

//#region src/components/fields/ListBoxPopover/listNavigation.d.ts
/**
 * Minimal view of a React Stately list state. Kept structural (no imports from
 * `react-stately`) so the helpers can be used from any collection-backed
 * component without dragging extra types in.
 */
interface ListStateLike {
  selectionManager: {
    focusedKey: Key | null;
    setFocusedKey: (key: Key | null) => void;
  };
  collection: Iterable<any>;
  disabledKeys?: Set<Key>;
  lastFocusSourceRef?: {
    current: 'keyboard' | 'mouse' | 'other';
  };
}
type TextFilterFn = (textValue: string, inputValue: string) => boolean;
//#endregion
export { ListStateLike, TextFilterFn };
//# sourceMappingURL=listNavigation.d.ts.map