import { FormikContextType } from 'formik';
import React from 'react';
import { ObjType } from './Wrapper';
export declare type ValOrFn<K, T = any> = ((values: T) => K) | K;
export interface CommonInputProps<K, T = any> {
    id: string;
    title?: string | React.ReactNode;
    labelPosition?: 'top' | 'bottom';
    help?: string;
    hide?: ValOrFn<boolean, T>;
    readOnly?: ValOrFn<boolean, T>;
    validateTitle?: string;
    validate?: any;
    placeholder?: string;
    initialValue?: K;
    onChange?: (val: any, formik: FormikContextType<T>) => void;
}
export declare type FormProps<T = ObjType> = React.PropsWithChildren<{
    onSubmit: (props: T) => void;
}>;
export declare const Form: React.MemoExoticComponent<(props: FormProps) => JSX.Element>;
