import type { ComboboxStore } from "../combobox/combobox-store.js";
import type { CompositeStoreFunctions, CompositeStoreItem, CompositeStoreOptions, CompositeStoreState } from "../composite/composite-store.js";
import type { PopoverStoreFunctions, PopoverStoreOptions, PopoverStoreState } from "../popover/popover-store.js";
import type { Store, StoreOptions, StoreProps } from "../utils/store.js";
import type { PickRequired, SetState } from "../utils/types.js";
type Value = string | string[];
type MutableValue<T extends Value = Value> = T extends string ? string : T;
type Item = CompositeStoreItem & {
    value?: string;
};
export declare function createSelectStore<T extends Value = Value>(props: PickRequired<SelectStoreProps<T>, "value" | "defaultValue">): SelectStore<T>;
export declare function createSelectStore(props?: SelectStoreProps): SelectStore;
export type SelectStoreItem = Item;
export type SelectStoreValue = Value;
export interface SelectStoreState<T extends Value = Value> extends CompositeStoreState<Item>, PopoverStoreState {
    /** @default true */
    virtualFocus: CompositeStoreState<Item>["virtualFocus"];
    /** @default false */
    includesBaseElement: CompositeStoreState<Item>["includesBaseElement"];
    /** @default null */
    activeId: CompositeStoreState<Item>["activeId"];
    /** @default "vertical" */
    orientation: CompositeStoreState<Item>["orientation"];
    /** @default "bottom-start" */
    placement: PopoverStoreState["placement"];
    /**
     * Whether the select store has received a combobox prop.
     */
    combobox: boolean;
    /**
     * The select value.
     *
     * Live examples:
     * - [Multi-selectable
     *   Combobox](https://ariakit.org/examples/combobox-multiple)
     */
    value: MutableValue<T>;
    /**
     * Whether the select value should be set when the active item changes by
     * moving (which usually happens when moving to an item using the keyboard).
     * @default false
     */
    setValueOnMove: boolean;
    /**
     * The select button element.
     */
    selectElement: HTMLElement | null;
    /**
     * The select label element.
     */
    labelElement: HTMLElement | null;
}
export interface SelectStoreFunctions<T extends Value = Value> extends CompositeStoreFunctions<Item>, PopoverStoreFunctions {
    /**
     * Sets the `value` state.
     *
     * Live examples:
     * - [Multi-selectable
     *   Combobox](https://ariakit.org/examples/combobox-multiple)
     * @example
     * store.setValue("Apple");
     * store.setValue(["Apple", "Banana"]);
     * store.setValue((value) => value === "Apple" ? "Banana" : "Apple"));
     */
    setValue: SetState<SelectStoreState<T>["value"]>;
    /**
     * Sets the `selectElement` state.
     */
    setSelectElement: SetState<SelectStoreState<T>["selectElement"]>;
    /**
     * Sets the `labelElement` state.
     */
    setLabelElement: SetState<SelectStoreState<T>["labelElement"]>;
}
export interface SelectStoreOptions<T extends Value = Value> extends StoreOptions<SelectStoreState<T>, "virtualFocus" | "includesBaseElement" | "activeId" | "orientation" | "placement" | "value" | "setValueOnMove">, CompositeStoreOptions<Item>, PopoverStoreOptions {
    /**
     * A reference to a combobox store. This is used when combining the combobox
     * with a select (e.g., select with a search input). The stores will share the
     * same state.
     *
     * Live examples:
     * - [Multi-selectable
     *   Combobox](https://ariakit.org/examples/combobox-multiple)
     */
    combobox?: ComboboxStore;
    /**
     * The default value. If not set, the first non-disabled item will be used.
     *
     * Live examples:
     * - [Multi-selectable
     *   Combobox](https://ariakit.org/examples/combobox-multiple)
     */
    defaultValue?: SelectStoreState<T>["value"];
}
export type SelectStoreProps<T extends Value = Value> = SelectStoreOptions<T> & StoreProps<SelectStoreState<T>>;
export type SelectStore<T extends Value = Value> = SelectStoreFunctions<T> & Store<SelectStoreState<T>>;
export {};
