import type { FormInstance as RcFormInstance } from '@rc-component/form';
import type { NamePath, ScrollOptions } from '../interface';
export interface FormInstance<Values = any> extends RcFormInstance<Values> {
    scrollToField: (name: NamePath, options?: ScrollOptions) => void;
    focusField: (name: NamePath) => void;
    getFieldInstance: (name: NamePath) => any;
}
export declare function toNamePathStr(name: NamePath): string;
export default function useForm<Values = any>(form?: FormInstance<Values>): [FormInstance<Values>];
