import React from 'react'; import { SearchBarPropsType, SearchBarState } from './PropsType'; export interface SearchBarProps extends SearchBarPropsType { prefixCls?: string; className?: string; style?: React.CSSProperties; } export default class SearchBar extends React.Component { static defaultProps: { prefixCls: string; placeholder: string; onSubmit: () => void; onChange: () => void; onFocus: () => void; onBlur: () => void; onClear: () => void; showCancelButton: boolean; disabled: boolean; }; rightBtnInitMarginleft: string | null; firstFocus: boolean; blurFromOnClear: boolean; onBlurTimeout: number | null; inputRef: HTMLInputElement | null; private rightBtnRef; private syntheticPhContainerRef; private syntheticPhRef; private inputContainerRef; constructor(props: SearchBarProps); componentDidMount(): void; componentDidUpdate(): void; componentWillReceiveProps(nextProps: SearchBarProps): void; componentWillUnmount(): void; onSubmit: (e: React.FormEvent) => void; onChange: (e: React.ChangeEvent) => void; onFocus: () => void; onBlur: () => void; onClear: () => void; doClear: (blurFromOnClear?: boolean) => void; onCancel: () => void; focus: () => void; render(): JSX.Element; }