/// <reference types="react" />
import { KeyboardEvent, PureComponent } from 'react';
export interface Props {
    autoFocus?: boolean;
    defaultValue?: string;
    onChange?: (value: string) => void;
    onSubmit?: (value: string) => void;
    onCancel?: () => void;
    placeholder?: string;
    onMouseDown?: Function;
    onKeyDown?: (e: KeyboardEvent<any>) => void;
    onBlur?: Function;
}
export interface State {
    value?: string;
}
export default class PanelTextInput extends PureComponent<Props, State> {
    private input?;
    constructor(props: any);
    componentWillReceiveProps(props: Props): void;
    onMouseDown: () => void;
    onBlur: () => void;
    render(): JSX.Element;
    focus(): void;
    private handleChange;
    private handleKeydown;
    private handleRef;
}
