import React from 'react'; import { type AriaSearchFieldProps } from 'react-aria'; import type { TestIdProp } from '../../types'; declare const defaultEnglish: { readonly label: "Search"; readonly clear: "clear search"; }; type TextContent = keyof typeof defaultEnglish; export interface SearchBarProps extends AriaSearchFieldProps, TestIdProp { onChange?: AriaSearchFieldProps['onChange']; isDisabled?: AriaSearchFieldProps['isDisabled']; maxLength?: AriaSearchFieldProps['maxLength']; /** * The placeholder text is also used as the aria-label since the SearchBar does not have a label element */ placeholder: string; /** * Language content override */ lang?: Partial>; /** * Optional forwarded ref for the input element (React 19) */ ref?: React.Ref; } /** * Oversized search bar implemented via the react-aria `useSearchField` hook * ([docs](https://react-spectrum.adobe.com/react-aria/useSearchField.html)). This search bar is used primarily in * combination with the `OptionGrid` in order to filter displayed options and can be reset once text is entered. * * This field does not have a visible label, so an placeholder text is used as `aria-label`. * It is recommended to use the `onChange` prop to handle the input content, uncontrolled. */ export declare const SearchBar: (componentProps: SearchBarProps) => React.JSX.Element; export {}; //# sourceMappingURL=SearchBar.d.ts.map