import * as React from 'react'; import { type ReactNode } from 'react'; import type { InputProps } from "../../form/useInput.js"; /** * To edit arrays of data embedded inside a record, creates a list of sub-forms. * * @example * * import { ArrayInputBase } from 'ra-core'; * import { SimpleFormIterator, DateInput, TextInput } from 'my-react-admin-ui'; * * * * * * * * * allows the edition of embedded arrays, like the backlinks field * in the following post record: * * { * id: 123 * backlinks: [ * { * date: '2012-08-10T00:00:00.000Z', * url: 'http://example.com/foo/bar.html', * }, * { * date: '2012-08-14T00:00:00.000Z', * url: 'https://blog.johndoe.com/2012/08/12/foobar.html', * } * ] * } * * expects a single child, which must be a *form iterator* component. * A form iterator is a component accepting a fields object as passed by * react-hook-form-arrays's useFieldArray() hook, and defining a layout for * an array of fields. * * @see {@link https://react-hook-form.com/docs/usefieldarray} */ export declare const ArrayInputBase: (props: ArrayInputBaseProps) => React.JSX.Element; export declare const getArrayInputError: (error: any) => any; export interface ArrayInputBaseProps extends Omit { children: ReactNode; } //# sourceMappingURL=ArrayInputBase.d.ts.map