
import { WithNullableValue } from "../../../utils/react/nullableValue.js";
import { CubeTextInputBaseProps } from "../TextInput/TextInputBase.js";
import "../TextInput/index.js";
import * as react from "react";
import { useSearchField } from "react-aria";
import { SearchFieldProps, useSearchFieldState } from "react-stately";

//#region src/components/fields/SearchInput/SearchInput.d.ts
interface CubeSearchInputProps extends CubeTextInputBaseProps, SearchFieldProps {
  /** Whether the search input is clearable using ESC keyboard button or clear button inside the input */
  isClearable?: boolean;
  /** Callback called when the clear button is pressed */
  onClear?: () => void;
}
declare const SearchInput: react.ForwardRefExoticComponent<Omit<WithNullableValue<CubeSearchInputProps>, "ref"> & react.RefAttributes<unknown>>;
//#endregion
export { CubeSearchInputProps, type SearchFieldProps, SearchInput, useSearchField, useSearchFieldState };
//# sourceMappingURL=SearchInput.d.ts.map