import React from 'react';
import { HistoryNavigator } from '@opensumi/monaco-editor-core/esm/vs/base/common/history';
import { IInputBaseProps } from './Input';
export interface HistoryInputBoxProp extends IInputBaseProps {
    history?: string[];
    onReady?: (api: IHistoryInputBoxHandler) => void;
}
export interface IHistoryInputBoxHandler {
    addToHistory: (v: string) => void;
    getHistory: () => string[];
    clearHistory: () => void;
    getCurrentValue: () => string | null;
    showNextValue: () => void;
    showPreviousValue: () => void;
    focus: () => void;
}
export declare class HistoryInputBox extends React.Component<HistoryInputBoxProp> {
    private inputRef;
    history: HistoryNavigator<string>;
    inputProps: HistoryInputBoxProp;
    readonly state: {
        inputValue: '';
    };
    componentDidMount(): void;
    addToHistory: (v: string) => void;
    getHistory: () => string[];
    showNextValue: () => void;
    showPreviousValue: () => void;
    clearHistory: () => void;
    getCurrentValue: () => string | null;
    getPreviousValue: () => string | null;
    getNextValue: () => string | null;
    onValueChange: (v: string) => void;
    private onKeyDown;
    private focus;
    render(): React.JSX.Element;
}
//# sourceMappingURL=HistoryInputBox.d.ts.map