import { n as ButtonOptions } from "../button-Bh6AYzok.js";
import { t as ComboboxStore } from "../combobox-store-FilGAecN.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/combobox/combobox-cancel.d.ts
declare const TagName = "button";
type TagName = typeof TagName;
/**
 * Returns props to create a `ComboboxCancel` component that clears the combobox
 * input when clicked.
 * @see https://ariakit.com/components/combobox
 * @example
 * ```jsx
 * const store = useComboboxStore();
 * const props = useComboboxCancel({ store });
 * <Combobox store={store} />
 * <Role {...props} />
 * ```
 */
declare const useComboboxCancel: import("@ariakit/react-utils").Hook<"button", ComboboxCancelOptions<"button">>;
/**
 * Renders a combobox cancel button that clears the combobox input value when
 * clicked.
 * @see https://ariakit.com/components/combobox
 * @example
 * ```jsx {3}
 * <ComboboxProvider>
 *   <Combobox />
 *   <ComboboxCancel />
 *   <ComboboxPopover>
 *     <ComboboxItem value="Apple" />
 *     <ComboboxItem value="Banana" />
 *     <ComboboxItem value="Orange" />
 *   </ComboboxPopover>
 * </ComboboxProvider>
 * ```
 */
declare const ComboboxCancel: (props: ComboboxCancelProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface ComboboxCancelOptions<T extends ElementType = TagName> extends ButtonOptions<T> {
  /**
   * Object returned by the
   * [`useComboboxStore`](https://ariakit.com/reference/use-combobox-store)
   * hook. If not provided, the closest
   * [`ComboboxProvider`](https://ariakit.com/reference/combobox-provider)
   * component's context will be used.
   */
  store?: ComboboxStore;
  /**
   * When enabled, the button won't be rendered when the combobox input value is
   * empty.
   *
   * Live examples:
   * - [Combobox with Tabs](https://ariakit.com/examples/combobox-tabs)
   * @default false
   */
  hideWhenEmpty?: boolean;
}
type ComboboxCancelProps<T extends ElementType = TagName> = Props<T, ComboboxCancelOptions<T>>;
//#endregion
export { ComboboxCancel, ComboboxCancelOptions, ComboboxCancelProps, useComboboxCancel };
//# sourceMappingURL=combobox-cancel.d.ts.map