UNPKG

670 BTypeScriptView Raw
1import React from 'react';
2import { FormLayout } from '.';
3import type { Meta, InternalNamePath } from 'rc-field-form/lib/interface';
4export declare type FormContextType = {
5 name?: string;
6 hasFeedback: boolean;
7 layout: FormLayout;
8 requiredMarkStyle: 'asterisk' | 'text-required' | 'text-optional' | 'none';
9 disabled: boolean;
10};
11export declare const defaultFormContext: FormContextType;
12export declare const FormContext: React.Context<FormContextType>;
13export declare type OnSubMetaChange = (meta: Meta & {
14 destroy?: boolean;
15}, namePath: InternalNamePath) => void;
16export declare const NoStyleItemContext: React.Context<OnSubMetaChange | null>;