import { ComponentPropsWithoutRef } from 'react'; import { LayoutUtilProps, Size } from '../../types'; /** * Props for the SearchField component * @extends Omit, "size" | "prefix" | "required" | "children"> * @extends LayoutUtilProps */ export type SearchFieldProps = Omit, "size" | "prefix" | "required" | "children"> & LayoutUtilProps & { /** * Size of the search field * @default "medium" */ size?: Extract; /** * Whether the search field is disabled * @default false */ disabled?: boolean; /** * Callback when the clear button is clicked */ onClear?: () => void; }; /** * SearchField component for text input with search functionality. * * Features: * - Search icon prefix for visual clarity * - Clear button that appears when input has value * - Multiple size variants (small, medium, large) * - Controlled and uncontrolled modes * - Disabled and read-only states * - Accessibility support with proper ARIA attributes * - Layout utility props for positioning and spacing * - Automatic value detection for clear button visibility * - Search-specific input type and autocomplete settings * - Screen reader support with placeholder announcements * * @example * setSearchTerm(e.target.value)} * onClear={() => setSearchTerm("")} * /> * * @example * setSearchValue(e.target.value)} * disabled={isLoading} * /> */ export declare const SearchField: import('react').ForwardRefExoticComponent, HTMLInputElement>, "ref">, "size" | "prefix" | "children" | "required"> & LayoutUtilProps & { /** * Size of the search field * @default "medium" */ size?: Extract; /** * Whether the search field is disabled * @default false */ disabled?: boolean; /** * Callback when the clear button is clicked */ onClear?: () => void; } & import('react').RefAttributes>;