/// <reference types="react" />
import { ModeType } from '../../type';
export interface FormSettingContextType {
    onDataSourceFinish?: (values: any, result: any, form: any) => void;
    renderMode?: ModeType;
    groupInfoPosition?: 'top' | 'side';
    children?: React.ReactNode;
    currentValue?: 'server' | 'local';
    size?: 'small' | 'middle' | 'large';
    formatSubmitValues?: (values: Record<string, any>) => Record<string, any>;
    formatInitialValues?: (values: Record<string, any>) => Record<string, any>;
    customSubmit?: (values: Record<string, any>) => Promise<any>;
    beforeSubmit?: (values: Record<string, any>) => Promise<boolean> | boolean;
}
export declare const FormSettingContext: import("react").Context<FormSettingContextType>;
export default FormSettingContext;
