import React, { Component, ReactNode } from 'react';
import Input, { InputProps } from './Input';
import { Size } from '../_util/enum';
import { ConfigContextValue } from '../config-provider/ConfigContext';
export interface SearchProps extends InputProps {
    inputPrefixCls?: string;
    onSearch?: (value: string) => any;
    enterButton?: boolean | ReactNode;
}
export default class Search extends Component<SearchProps, any> {
    static displayName: string;
    static get contextType(): React.Context<ConfigContextValue>;
    static defaultProps: {
        enterButton: boolean;
        size: Size;
    };
    context: ConfigContextValue;
    private input;
    onSearch: () => void;
    focus(): void;
    blur(): void;
    saveInput: (node: Input) => void;
    getPrefixCls(): string;
    getButtonOrIcon(): JSX.Element;
    render(): JSX.Element;
}
