import { ReactElement, ReactNode } from 'react'; import { FilterPayload, ListControllerResult, RaRecord, SortPayload, ExtractRecordPaths, HintedString } from 'ra-core'; import { UseQueryOptions } from '@tanstack/react-query'; /** * A container component that fetches records from another resource specified * by an array of *ids* in current record. * * You must define the fields to be passed to the iterator component as children. * * @example Display all the categories of the current product as a list of chips (the default) * // product = { * // id: 456, * // category_ids: [11, 22, 33], * // } * * * @example Display all the products of the current order as DataTable * // order = { * // id: 123, * // product_ids: [456, 457, 458], * // } * * * * * * * * * * By default, restricts the displayed values to 1000. You can extend this limit * by setting the `perPage` prop. * * @example * * ... * * * By default, the field displays the results in the order in which they are referenced * (i.e. in the order of the list of ids). You can change this order * by setting the `sort` prop (an object with `field` and `order` properties). * * @example * * ... * * * Also, you can filter the results to display only a subset of values. Use the * `filter` prop for that. * * @example * * ... * */ export declare const ReferenceArrayField: , ReferenceRecordType extends RaRecord = RaRecord>(props: ReferenceArrayFieldProps) => import("react/jsx-runtime").JSX.Element; export interface ReferenceArrayFieldProps extends ReferenceArrayFieldViewProps { filter?: FilterPayload; page?: number; pagination?: ReactElement; perPage?: number; reference: string; resource?: string; source: NoInfer>>; sort?: SortPayload; queryOptions?: Omit, "queryFn" | "queryKey">; render?: (props: ListControllerResult) => ReactElement; } export interface ReferenceArrayFieldViewProps { children?: ReactNode; className?: string; empty?: ReactNode; error?: ReactNode; loading?: ReactNode; pagination?: ReactNode; } export declare const ReferenceArrayFieldView: (props: ReferenceArrayFieldViewProps) => import("react/jsx-runtime").JSX.Element;