import React from 'react';
import { AnswerHistoryEntry, RichTextAnswer, TextAnswer } from '../../types/ExamAnswer';
import { ExamServerAPI } from '../../types/ExamServerAPI';
export interface UndoViewProps {
    close: () => void;
    restoreAnswer: (examAnswer: TextAnswer | RichTextAnswer) => void;
    questionId: number;
    title: string;
    examServerApi: ExamServerAPI;
}
interface UndoViewState {
    answers: AnswerHistoryEntry[];
    selectedAnswerIndex: number;
    loading: boolean;
    loadRetryTimeout: number | null;
}
export declare class UndoView extends React.PureComponent<UndoViewProps, UndoViewState> {
    private source;
    constructor(props: UndoViewProps);
    componentDidMount(): void;
    componentWillUnmount(): void;
    componentDidUpdate(prevProps: UndoViewProps): void;
    private overlayClicked;
    private keydownListener;
    private fetchAnswerHistory;
    private close;
    render(): React.JSX.Element;
}
export {};
//# sourceMappingURL=UndoView.d.ts.map