import * as React from "react";
import type { PerseusFreeResponseWidgetOptions, FreeResponseDefaultWidgetOptions, PerseusFreeResponseWidgetScoringCriterion } from "@khanacademy/perseus-core";
import type { ChangeEventHandler } from "react";
type Props = PerseusFreeResponseWidgetOptions & {
    onChange: (options: Partial<PerseusFreeResponseWidgetOptions>) => void;
};
/**
 * An editor for adding a free response widget that allows users to enter open-ended text answers.
 */
declare class FreeResponseEditor extends React.Component<Props> {
    static defaultProps: FreeResponseDefaultWidgetOptions;
    static widgetName: "free-response";
    serialize: () => PerseusFreeResponseWidgetOptions;
    getSaveWarnings: () => Array<string>;
    handleUpdateCharacterLimit: ChangeEventHandler<HTMLInputElement>;
    handleUpdateCriterion: (index: number, criterion: PerseusFreeResponseWidgetScoringCriterion) => void;
    handleDeleteCriterion: (index: number) => void;
    handleAddCriterion: () => void;
    renderCriteriaList: () => React.ReactNode;
    render(): React.ReactNode;
}
export default FreeResponseEditor;
