import { FC, ReactElement } from 'react'; import { FilterPayload, SortPayload, ListControllerProps } from '../../features/core'; import { PublicFieldProps, InjectedFieldProps } from './types'; /** * Render related records to the current one. * * You must define the fields to be passed to the iterator component as children. * * @example Display all the comments of the current post as a datagrid * * * * * * * * * * @example Display all the books by the current author, only the title * * * * * * * By default, restricts the displayed values to 25. You can extend this limit * by setting the `perPage` prop. * * @example * * ... * * * By default, orders the possible values by id desc. You can change this order * by setting the `sort` prop (an object with `field` and `order` properties). * * @example * * ... * * * Also, you can filter the query used to populate the possible values. Use the * `filter` prop for that. * * @example * * ... * */ export declare const ReferenceManyField: FC; export interface ReferenceManyFieldProps extends PublicFieldProps, InjectedFieldProps { children: ReactElement; filter?: FilterPayload; page?: number; pagination?: ReactElement; perPage?: number; reference: string; sort?: SortPayload; target: string; } export declare const ReferenceManyFieldView: FC; export interface ReferenceManyFieldViewProps extends Omit, ListControllerProps { children: ReactElement; } export default ReferenceManyField;