import type { BooleanOrCallback } from "@ariakit/core/utils/types"; import type { ElementType, MouseEvent } from "react"; import type { CompositeHoverOptions } from "../composite/composite-hover.tsx"; import type { CompositeItemOptions } from "../composite/composite-item.tsx"; import type { Props } from "../utils/types.ts"; import type { SelectStore } from "./select-store.ts"; declare const TagName = "div"; type TagName = typeof TagName; /** * Returns props to create a `SelectItem` component. * @see https://ariakit.com/components/select * @example * ```jsx * const store = useSelectStore(); * const props = useSelectItem({ store, value: "Apple" }); * * ``` */ export declare const useSelectItem: import("../utils/types.ts").Hook<"div", SelectItemOptions<"div">>; /** * Renders a select item inside a * [`SelectList`](https://ariakit.com/reference/select-list) or * [`SelectPopover`](https://ariakit.com/reference/select-popover). * * The `role` attribute will be automatically set on the item based on the * list's own `role` attribute. For example, if the * [`SelectPopover`](https://ariakit.com/reference/select-popover) component's * `role` attribute is set to `listbox` (which is the default), the item `role` * will be set to `option`. * * By default, the [`value`](https://ariakit.com/reference/select-item#value) * prop will be rendered as the children, but this can be overriden if a custom * children is provided. * @see https://ariakit.com/components/select * @example * ```jsx {4-5} * *