import * as React from 'react'; import { InputProps } from '../common'; import { FormContextType } from '../contexts/FormContext'; export interface FormContextProps { /** * The relevant form, if any. */ form?: FormContextType; } /** * Wraps the component in a new component that dynamically places the inner part * in a form context depending on the use (e.g., with a `name` prop). * @param Component The component to place in a form context if a name is given. * @returns A component that can be also used together with `
`. */ export declare function withFormContext>(Component: React.ComponentType): React.SFC;