import type { ComponentPublicInstance, InjectionKey } from 'vue'; import type { FormProps } from './form'; import type { FieldValidationStatus } from '../../field'; export type FormExpose = { submit: () => void; validate: (name?: string | string[] | undefined) => Promise; getValues: () => Record; scrollToField: (name: string, options?: boolean | ScrollIntoViewOptions | undefined) => void; resetValidation: (name?: string | string[] | undefined) => void; getValidationStatus: () => Record; }; export type FormProvide = { props: FormProps; }; export declare const FORM_KEY: InjectionKey; export type FormInstance = ComponentPublicInstance;