import React, { FunctionComponent, ReactNode, FormEvent } from 'react'; import { ValidationError } from '../validation'; declare type FieldCtx = { name: string; value: any; setValue: (value: any) => void; onBlur: (evt: FormEvent) => void; error?: ValidationError; }; declare type CallableChildProps = { value: any; setValue: (val: any) => void; onBlur?: (evt: FormEvent) => void; error?: ValidationError; }; declare type CallableChild = (props: CallableChildProps) => ReactNode; declare type Props = { name: string; children?: ReactNode | CallableChild; }; export declare const FieldContext: React.Context; export declare const Field: FunctionComponent; export {};