import { FormEvent, ReactNode } from 'react';
import { LocaledComponentProps } from '../locale';
import { BasicSizeType } from '../utils/types';
export interface LocaleType {
    searchTipText?: string;
    cancelText?: string;
}
export interface SearchProps extends LocaledComponentProps<LocaleType> {
    prefix?: string;
    size?: BasicSizeType;
    value?: string | number;
    placeholder?: string;
    defaultValue?: string;
    searchText?: string;
    disabled?: boolean;
    icon?: string | ReactNode;
    focused?: boolean;
    maxLength?: number;
    enableNative?: boolean;
    keyboardType?: string;
    className?: string;
    hasIcon?: boolean;
    hasClear?: boolean;
    hasCancel?: boolean;
    cancelText?: string;
    onChange?: (value: string, e?: FormEvent<HTMLInputElement>) => void;
    onConfirm?: (value: string, e?: FormEvent<HTMLInputElement>) => void;
    onSearch?: (value: string, e?: FormEvent<HTMLInputElement>) => void;
    onClear?: (e?: any) => void;
    onBlur?: (e?: FormEvent<HTMLInputElement>) => void;
    onFocus?: () => void;
    onCancel?: () => void;
}
declare const _default: import("react").ForwardRefExoticComponent<SearchProps & import("react").RefAttributes<any>>;
export default _default;
