import { Arrayable } from "../../../utils/typescript.js"; import "../../../utils/index.js"; import { FormItemProp } from "./form-item.js"; import { FormItemContext, FormValidateCallback, FormValidationResult } from "./types.js"; import { FormProps } from "./form.js"; import * as vue from "vue"; //#region ../../packages/components/form/src/form.vue.d.ts declare var __VLS_1: {}; type __VLS_Slots = {} & { default?: (props: typeof __VLS_1) => any; }; declare const __VLS_base: vue.DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption, { labelPosition: string; requireAsteriskPosition: string; labelWidth: string; labelSuffix: string; showMessage: boolean; validateOnRuleChange: boolean; scrollIntoViewOptions: boolean; hiddenMessage: boolean; messageType: boolean; isSearch: boolean; }>, { /** * @description Validate the whole form. Receives a callback or returns `Promise`. */ validate: (callback?: FormValidateCallback) => FormValidationResult; /** * @description Validate specified fields. */ validateField: (props?: Arrayable, callback?: FormValidateCallback) => FormValidationResult; /** * @description Reset specified fields and remove validation result. */ resetFields: (props?: Arrayable) => void; /** * @description Clear validation message for specified fields. */ clearValidate: (props?: Arrayable) => void; /** * @description Scroll to the specified fields. */ scrollToField: (prop: FormItemProp) => void; /** * @description Get a field context. */ getField: (prop: FormItemProp) => FormItemContext | undefined; /** * @description All fields context. */ fields: vue.Reactive; /** * @description Set initial values for form fields. When `resetFields` is called, fields will reset to these values. */ setInitialValues: (initModel: Record) => void; }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, { validate: (prop: FormItemProp, isValid: boolean, message: string) => void; }, string, vue.PublicProps, Readonly, { labelPosition: string; requireAsteriskPosition: string; labelWidth: string; labelSuffix: string; showMessage: boolean; validateOnRuleChange: boolean; scrollIntoViewOptions: boolean; hiddenMessage: boolean; messageType: boolean; isSearch: boolean; }>>> & { onValidate?: ((prop: FormItemProp, isValid: boolean, message: string) => any) | undefined; }, { messageType: boolean; labelWidth: string | number; labelPosition: "left" | "right" | "top"; requireAsteriskPosition: "left" | "right"; labelSuffix: string; showMessage: boolean; validateOnRuleChange: boolean; scrollIntoViewOptions: ScrollIntoViewOptions | boolean; hiddenMessage: boolean; isSearch: boolean; }, {}>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; type __VLS_TypePropsToOption = { [K in keyof T]-?: {} extends Pick ? { type: vue.PropType[K]>; } : { type: vue.PropType; required: true; } }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_PrettifyLocal : P[K] }; type __VLS_WithSlots = T & { new (): { $slots: S; }; }; type __VLS_PrettifyLocal = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {}; //#endregion export { _default };