import type { ElementType } from "react"; import type { Options, 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 `SelectLabel` component. Since it's not a native * select element, we can't use the native label element. The `SelectLabel` * component will move focus and click on the `Select` component when the user * clicks on the label. * @see https://ariakit.com/components/select * @example * ```jsx * const store = useSelectStore(); * const props = useSelectLabel({ store }); * Favorite fruit * * * * * * * ``` */ export declare const SelectLabel: (props: SelectLabelProps) => import("react").ReactElement>; export interface SelectLabelOptions<_T extends ElementType = TagName> extends Options { /** * Object returned by the * [`useSelectStore`](https://ariakit.com/reference/use-select-store) hook. If * not provided, the closest * [`SelectProvider`](https://ariakit.com/reference/select-provider) * component's context will be used. */ store?: SelectStore; } export type SelectLabelProps = Props>; export {};