/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { FormInstance as RcFormInstance } from '../../../../../@ecom/rc-field-form'; import { ScrollOptions, NamePath, InternalNamePath } from '../interface'; export interface FormInstance extends RcFormInstance { scrollToField: (name: NamePath, options?: ScrollOptions) => void; __INTERNAL__: { name?: string; itemRef: (name: InternalNamePath) => (node: React.ReactElement) => void; }; getFieldInstance: (name: NamePath) => any; } export default function useForm(form?: FormInstance): [FormInstance];