import React from 'react';
import { FormInstance as RcFormInstance } from '../../components/rc-field-form';
import { ScrollOptions, NamePath, InternalNamePath } from '../interface';
export interface FormInstance<Values = any> extends RcFormInstance<Values> {
    scrollToField: (name: NamePath, options?: ScrollOptions) => void;
    __INTERNAL__: {
        /** No! Do not use this in your code! */
        itemRef: (name: InternalNamePath) => (node: React.ReactElement) => void;
        name?: string;
    };
    getFieldInstance: (name: NamePath) => any;
}
export declare function toNamePathStr(name: NamePath): string;
export default function useForm<Values = any>(form?: FormInstance<Values>): FormInstance<Values>[];
