1 | import * as React from 'react';
|
2 | import { FormInstance as RcFormInstance } from 'rc-field-form';
|
3 | import { ScrollOptions, NamePath, InternalNamePath } from '../interface';
|
4 | export interface FormInstance<Values = any> extends RcFormInstance<Values> {
|
5 | scrollToField: (name: NamePath, options?: ScrollOptions) => void;
|
6 |
|
7 | __INTERNAL__: {
|
8 |
|
9 | name?: string;
|
10 |
|
11 | itemRef: (name: InternalNamePath) => (node: React.ReactElement) => void;
|
12 | };
|
13 | getFieldInstance: (name: NamePath) => any;
|
14 | }
|
15 | export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];
|