1 | import type { FormInstance as RcFormInstance } from 'rc-field-form';
|
2 | import type { NamePath, ScrollOptions } from '../interface';
|
3 | export interface FormInstance<Values = any> extends RcFormInstance<Values> {
|
4 | scrollToField: (name: NamePath, options?: ScrollOptions) => void;
|
5 | getFieldInstance: (name: NamePath) => any;
|
6 | }
|
7 | export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];
|