1 | import React from 'react';
|
2 | import type { FC, ReactNode } from 'react';
|
3 | import type { FormInstance } from 'rc-field-form';
|
4 | import type { NamePath } from 'rc-field-form/es/interface';
|
5 | declare type RenderChildren<Values = any> = (changedValues: Record<string, any>, form: FormInstance<Values>) => ReactNode;
|
6 | declare type ChildrenType<Values = any> = RenderChildren<Values>;
|
7 | export interface FormSubscribeProps {
|
8 | to: NamePath[];
|
9 | children: ChildrenType;
|
10 | }
|
11 | export declare const FormSubscribe: FC<FormSubscribeProps>;
|
12 | export declare const Watcher: React.NamedExoticComponent<{
|
13 | form: FormInstance;
|
14 | namePath: NamePath;
|
15 | onChange: () => void;
|
16 | }>;
|
17 | export {};
|