import React from 'react'; import PropTypes from 'prop-types'; /** * Component for controlling a list of radio inputs */ type RadioListProps = { /** Id for the container */ id?: string; /** Name for the radio inputs */ name: string; /** A function that returns the content of each radio item */ children: Function; /** A function that returns the key to use for each item */ keyGetter?: string | ((item: any) => string); /** A list of options to use */ options: any[]; /** Called when the selected item change */ onChange: (value: any) => void; /** The default value to use */ defaultValue?: any; /** The current value */ value?: any; /** If true, all radio buttons will be disabled */ disabled?: boolean; /** Container props */ containerProps?: any; /** Label props */ labelProps?: any; /** Radio size */ radioSize?: number; /** Data-cy */ 'data-cy'?: string; }; declare const StyledRadioList: { ({ children, id, name, onChange, options, keyGetter, disabled, containerProps, labelProps, radioSize, "data-cy": dataCy, ...props }: RadioListProps): React.JSX.Element; defaultProps: { children: { ({ value, radio }: { value: any; radio: any; }): React.JSX.Element; propTypes: { value: PropTypes.Requireable; radio: PropTypes.Requireable<(...args: any[]) => any>; }; }; onChange: () => void; }; displayName: string; }; export default StyledRadioList;