import * as React from "react";
import BlurInput from "../components/blur-input";
import type { ParsedValue } from "@khanacademy/perseus";
import type { PerseusInputNumberWidgetOptions, InputNumberDefaultWidgetOptions } from "@khanacademy/perseus-core";
type Props = {
    value: number;
    simplify: PerseusInputNumberWidgetOptions["simplify"];
    size: PerseusInputNumberWidgetOptions["size"];
    inexact: PerseusInputNumberWidgetOptions["inexact"];
    maxError: PerseusInputNumberWidgetOptions["maxError"];
    answerType: PerseusInputNumberWidgetOptions["answerType"];
    rightAlign: PerseusInputNumberWidgetOptions["rightAlign"];
    onChange: (arg1: {
        value?: ParsedValue | 0;
        simplify?: Props["simplify"];
        size?: Props["size"];
        inexact?: Props["inexact"];
        maxError?: Props["maxError"];
        answerType?: Props["answerType"];
        rightAlign?: Props["rightAlign"];
    }) => void;
};
/**
 * An editor for adding an input number widget that allows users to enter numerical values.
 */
declare class InputNumberEditor extends React.Component<Props> {
    static widgetName: "input-number";
    static defaultProps: InputNumberDefaultWidgetOptions;
    input: React.RefObject<BlurInput>;
    handleAnswerChange: (arg1: string) => void;
    focus: () => boolean;
    serialize: () => {
        value: Props["value"];
        simplify: Props["simplify"];
        size: Props["size"];
        inexact: Props["inexact"];
        maxError: Props["maxError"];
        answerType: Props["answerType"];
        rightAlign: Props["rightAlign"];
    };
    render(): React.ReactNode;
}
export default InputNumberEditor;
