import * as React from 'react'; import PropTypes from 'prop-types'; import type { ConfigureMathMLProp } from '@pie-element/shared-types'; import type { AuthorModel, ChartDefinition } from './configure.js'; import type { ChartingValidationErrors } from '../controller/index.js'; import type { ChartingGraph, ChartingLabelsPlaceholders } from '../types.js'; type CorrectResponseProps = { model: AuthorModel; onChange: (model: AuthorModel) => void; charts?: ChartDefinition[]; /** Category errors of the correct answer, keyed by category position; the chart shows each under its category */ error?: ChartingValidationErrors['categoryErrors']; correctAnswerErrors?: ChartingValidationErrors['correctAnswerErrors']; studentNewCategoryDefaultLabel?: string; mathMlOptions?: ConfigureMathMLProp; labelsPlaceholders?: ChartingLabelsPlaceholders; /** Not read */ config?: ChartingGraph; }; export declare const getUpdatedCategories: (nextProps: any, prevProps: any, prevState: any) => any; export declare class CorrectResponse extends React.Component { static propTypes: { correctAnswerErrors: PropTypes.Requireable; studentNewCategoryDefaultLabel: PropTypes.Requireable; model: PropTypes.Validator; onChange: PropTypes.Validator<(...args: any[]) => any>; charts: PropTypes.Requireable; error: PropTypes.Requireable; }; constructor(props: any); changeData: any; componentDidMount(): void; componentDidUpdate(prevProps: any, prevState: any): void; render(): React.JSX.Element; } export default CorrectResponse;