import * as React from 'react'; import { ReactNode } from 'react'; import { FieldValues } from 'react-hook-form'; /** * Get the current (edited) value of the record from the form and pass it * to a child function * * @example * * const PostEdit = () => ( * * > * * * {({ formData }) => formData.hasEmail && * * } * * * * ); * * @example * * const OrderEdit = () => ( * * * * > * {({ formData }) => * * } * * * * ); */ export declare const FormDataConsumer: (props: ConnectedProps) => React.JSX.Element; export declare const FormDataConsumerView: (props: Props) => any; export interface FormDataConsumerRenderParams { formData: TFieldValues; scopedFormData?: TScopedFieldValues; } export type FormDataConsumerRender = (params: FormDataConsumerRenderParams) => ReactNode; interface ConnectedProps { children: FormDataConsumerRender; form?: string; record?: any; source?: string; [key: string]: any; } interface Props extends ConnectedProps { formData: TFieldValues; index?: number; } export {}; //# sourceMappingURL=FormDataConsumer.d.ts.map