import React from 'react'; import { AnyObject, UseFieldApiConfig } from '@data-driven-forms/react-form-renderer'; import { OptionValue } from '../types/shared-types'; /** * Option interface for multiple choice lists */ export interface MultipleChoiceOption { value: T; label: string; 'aria-label'?: string; } /** * Props for wrapper component in multiple choice list */ export interface MultipleChoiceWrapperProps { showError: boolean; isRequired?: boolean; label?: React.ReactNode; helperText?: React.ReactNode; meta: Record; description?: React.ReactNode; rest: Record; error?: string; name: string; children: React.ReactNode; } /** * Props for checkbox component in multiple choice list */ export interface MultipleChoiceCheckboxProps { value: T; label: string; name: string; checked?: boolean; onChange?: (value: T) => void; 'aria-label'?: string; id?: string; isDisabled?: boolean; option?: MultipleChoiceOption; } export interface MultipleChoiceListProps = MultipleChoiceCheckboxProps> extends UseFieldApiConfig { Wrapper: React.ComponentType; Checkbox: React.ComponentType; options: MultipleChoiceOption[]; } declare const MultipleChoiceList: (props: MultipleChoiceListProps) => import("react/jsx-runtime").JSX.Element; export declare const wrapperProps: AnyObject; export default MultipleChoiceList;