import { Store } from '@aplus-frontend/antdv/es/form/interface';
import { ApFormExpose } from '../interface';
export type ApFormInstance = ApFormExpose;
export type Forms = Record<string, ApFormInstance>;
export interface ApFormChangeInfo {
    changedFields: any;
    forms: Forms;
}
export interface ApFormFinishInfo {
    values: Store;
    forms: Forms;
}
export type ApFormProviderProps = {
    onFormChange?: (name: string, info: ApFormChangeInfo) => void;
    onFormFinish?: (name: string, info: ApFormFinishInfo) => void;
};
export interface InternalFormProviderContext {
    triggerFormChange: (name: string, changedFields: any) => void;
    triggerFormFinish: (name: string, values: Store) => void;
    registerForm: (name: string, form: ApFormInstance) => void;
    unregisterForm: (name: string) => void;
}
