import React, { FunctionComponent, ReactNode, FormEvent } from 'react'; import { ValidationError } from '../validation'; declare type FieldArrayCtx = { name: string; values: string[]; setValue: (idx: number, value: string) => void; onBlur: (evt: FormEvent) => void; errors?: ValidationError[]; }; declare type CallableChildProps = { values: string[]; setValue: (idx: number, val: string) => void; onBlur?: (evt: FormEvent) => void; errors?: ValidationError[]; }; declare type CallableChild = (props: CallableChildProps) => ReactNode; declare type Props = { name: string; children?: ReactNode | CallableChild; }; export declare const FieldArrayContext: React.Context; export declare const FieldArray: FunctionComponent; export {};