/** * A version of the `math-input` subrepo's KeypadInput component that adheres to * the same API as Perseus's MathOuput and NumberInput, allowing it to be * dropped in as a replacement for those components without any modifications. */ import { KeypadContext } from "@khanacademy/keypad-context"; import { KeypadInput } from "@khanacademy/math-input"; import * as React from "react"; import type { Focusable } from "../types"; export default class SimpleKeypadInput extends React.Component implements Focusable { static contextType: React.Context; context: React.ContextType; _isMounted: boolean; inputRef: React.RefObject; componentDidMount(): void; componentWillUnmount(): void; focus(): void; blur(): void; getValue(): string | number; render(): React.ReactNode; }