import * as React from 'react'; import { FieldModel, FieldArrayModel, BasicModel } from './models'; export interface IFieldSetValueProps { name: string; children?: React.ReactNode; } /** * 根据 `name` 订阅 `FieldSet` 的值 */ export declare function FieldSetValue({ name, children }: IFieldSetValueProps): JSX.Element | null; export interface IFieldValueCommonProps { /** * render props,参数是 Field 当前的值 */ children?: (value: T | null) => React.ReactElement | null; } export interface IFieldValueViewDrivenProps extends IFieldValueCommonProps { name: string; } export interface IFieldValueModelDrivenProps extends IFieldValueCommonProps { model: FieldModel; } export declare type IFieldValueProps = IFieldValueModelDrivenProps | IFieldValueViewDrivenProps; export declare function useFieldValue(field: string | FieldModel): T | null; /** * 根据 `name` 或者 `model` 订阅字段的更新 */ export declare function FieldValue(props: IFieldValueProps): React.ReactElement | null; /** * 根据 `name` 或者 `model` 订阅 `FieldArray` 的更新 */ export declare function useFieldArrayValue>(field: string | FieldArrayModel): Child[] | null; //# sourceMappingURL=value-listener.d.ts.map