import type { ComponentPublicInstance } 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 type FormInstance = ComponentPublicInstance;