import { Component, ReactNode } from 'react'; import { crudGetManyAccumulate as crudGetManyAccumulateAction } from '../../actions'; import { Record, Dispatch } from '../../types'; interface ChildrenFuncParams { isLoading: boolean; referenceRecord: Record; resourceLinkPath: string | boolean; } interface Props { allowEmpty?: boolean; basePath: string; children: (params: ChildrenFuncParams) => ReactNode; crudGetManyAccumulate: Dispatch; record?: Record; reference: string; referenceRecord?: Record; resource: string; source: string; linkType: string | boolean; } /** * Fetch reference record, and delegate rendering to child component. * * The reference prop sould be the name of one of the components * added as child. * * @example * * * * * By default, includes a link to the page of the related record * (`/users/:userId` 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 * * * */ export declare class UnconnectedReferenceFieldController extends Component { static defaultProps: Partial; componentDidMount(): void; componentWillReceiveProps(nextProps: any): void; fetchReference(props: any): void; render(): ReactNode; } declare const ReferenceFieldController: import("react-redux").ConnectedComponentClass; export default ReferenceFieldController;