import * as React from 'react'; import { HtmlHTMLAttributes, ComponentType } from 'react'; import PropTypes from 'prop-types'; import { Record, RecordMap, Identifier } from '../../features/core'; /** * Iterator component to be used to display a list of entities, using a single field * * @example Display all the books by the current author * * * * * * * By default, it includes a link to the page of the related record * (`/books/:id` in the previous example). * * Set the linkType prop to "show" to link to the page instead. * * @example * * * * * * * You can also prevent `` from adding link to children by setting * `linkType` to false. * * @example * * * * * */ declare const SingleFieldList: { (props: SingleFieldListProps): JSX.Element; propTypes: { basePath: PropTypes.Requireable; children: PropTypes.Validator; classes: PropTypes.Requireable; className: PropTypes.Requireable; component: (props: any, propName: any, componentName: any) => Error; data: PropTypes.Requireable; ids: PropTypes.Requireable; linkType: PropTypes.Requireable; resource: PropTypes.Requireable; }; }; export interface SingleFieldListProps extends HtmlHTMLAttributes { className?: string; component?: string | ComponentType; linkType?: string | false; children: React.ReactElement; basePath?: string; data?: RecordMap; ids?: Identifier[]; loaded?: boolean; } export default SingleFieldList;