import React, { ReactNode } from 'react';
import { type UseReferenceManyFieldControllerParams } from "./useReferenceManyFieldController.cjs";
import type { RaRecord } from "../../types.cjs";
import { ListControllerResult } from "../list/index.cjs";
/**
* 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 ReferenceManyFieldBase: (props: ReferenceManyFieldBaseProps) => React.JSX.Element;
export interface ReferenceManyFieldBaseProps = Record, ReferenceRecordType extends RaRecord = RaRecord> extends UseReferenceManyFieldControllerParams {
children?: ReactNode;
render?: (props: ListControllerResult) => ReactNode;
empty?: ReactNode;
error?: ReactNode;
loading?: ReactNode;
offline?: ReactNode;
}
//# sourceMappingURL=ReferenceManyFieldBase.d.ts.map