import { ReactElement } from 'react';
import { FieldBaseProps } from '../../../shared/index';
import { Styles } from '../../../tasty/index';
import { FieldTypes } from './types';
import { CubeFormInstance } from './use-form';
export interface CubeFieldProps<T extends FieldTypes> extends FieldBaseProps {
    /** The initial value of the input. */
    defaultValue?: any;
    styles?: Styles;
    children?: ReactElement | ((CubeFormInstance: any) => ReactElement);
    /** The form instance */
    form?: CubeFormInstance<T>;
}
export declare function Field<T extends FieldTypes>(props: CubeFieldProps<T>): import("react/jsx-runtime").JSX.Element | null;
export declare function useInsideLegacyField(): boolean;
