import * as React from 'react'; import type { SemanticClassNames, SemanticClassNamesType, SemanticStyles, SemanticStylesType } from '../_util/hooks'; import type { ButtonSemanticName } from '../button/Button'; import type { InputProps, InputRef } from './Input'; type SemanticName = 'root' | 'input' | 'prefix' | 'suffix' | 'count'; export type InputSearchClassNamesType = SemanticClassNamesType & { button?: SemanticClassNames; }; export type InputSearchStylesType = SemanticStylesType & { button?: SemanticStyles; }; export interface SearchProps extends InputProps { inputPrefixCls?: string; onSearch?: (value: string, event?: React.ChangeEvent | React.MouseEvent | React.KeyboardEvent, info?: { source?: 'clear' | 'input'; }) => void; enterButton?: React.ReactNode; loading?: boolean; onPressEnter?: (e: React.KeyboardEvent) => void; classNames?: InputSearchClassNamesType; styles?: InputSearchStylesType; } declare const Search: React.ForwardRefExoticComponent>; export default Search;