import { ComponentType, FC } from 'react';
import { FormatFn } from './graph';
import { ReadyValidator } from './validators';
export type FieldProps = {
name: string;
prettyName?: string | undefined;
validators?: any[] | undefined;
};
export type ControlProps = {
disabled?: boolean | undefined;
};
type RawControlProps = {
disabled?: boolean | undefined;
};
type RawFieldProps = RawControlProps & {
error?: unknown;
value?: unknown;
};
export type RawField = ComponentType & {
format?: FormatFn | undefined;
};
interface IPreValidators {
[k: string]: ReadyValidator[];
}
export declare const withField: (Component: RawField, implicitValidators?: ReadyValidator[], preValidators?: IPreValidators) => FC;
export declare const withControl: (Component: ComponentType) => FC;
export declare const withForm: (Component: RawField, implicitValidators?: ReadyValidator[], preValidators?: IPreValidators) => FC;
export {};