import { ComputedRef, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Attrs, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ComponentCustomProperties, DefineComponent, ExtractPropTypes, PropType, VNode, PublicProps, RendererNode, RendererElement } from 'vue'; import { FieldEditorProps, FieldOption, FieldOptionsLoader } from './types'; import { BaseSize } from '../../'; import { FormItemProp, FormItemRule, FormItemValidateState, ComponentSize, FormItemProps, FormValidateCallback, FormValidationResult, ElTooltipProps, UseTooltipProps } from 'element-plus'; import { Arrayable } from 'element-plus/es/utils/typescript.mjs'; import { OnCleanup } from '@vue/reactivity'; import { BuiltinFieldEditorType } from './builtin'; declare function __VLS_template(): { attrs: Partial<{}>; slots: { label?(_: {}): any; error?(_: { error: string; }): any; editor?(_: { editor: FieldEditorProps; }): any; option?(_: { option: any; }): any; tip?(_: {}): any; default?(_: {}): any; }; refs: { itemRef: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly label?: string | undefined; readonly labelWidth?: string | number | undefined; readonly labelPosition?: "left" | "right" | "top" | "" | undefined; readonly prop?: FormItemProp | undefined; readonly required?: boolean | undefined; readonly rules?: Arrayable | undefined; readonly error?: string | undefined; readonly validateStatus?: FormItemValidateState | undefined; readonly for?: string | undefined; readonly inlineMessage?: boolean | undefined; readonly showMessage?: boolean | undefined; readonly size?: ComponentSize | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: Attrs; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $host: Element | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: ComponentOptionsBase & Readonly<{}>, { size: ComputedRef<"" | "default" | "small" | "large">; validateMessage: Ref; validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">; validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult; clearValidate: () => void; resetField: () => void; setInitialValue: (value: any) => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, { required: boolean; labelPosition: "left" | "right" | "top" | ""; inlineMessage: boolean; showMessage: boolean; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle; } & Readonly<{ required: boolean; labelPosition: "left" | "right" | "top" | ""; inlineMessage: boolean; showMessage: boolean; }> & Omit & Readonly<{}>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & { size: "" | "large" | "default" | "small"; validateMessage: string; validateState: "" | "success" | "error" | "validating"; validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult; clearValidate: () => void; resetField: () => void; setInitialValue: (value: any) => void; } & {} & ComponentCustomProperties & {} & { $slots: { label?: (props: { label: string; }) => any; } & { default?: (props: {}) => any; } & { error?: (props: { error: string; }) => any; }; }) | null; editorRef: unknown; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: DefineComponent>; default: string; }; props: { type: PropType>; }; modelValue: { type: PropType; default(context: any): any; }; size: { type: PropType; }; width: { type: PropType; }; tooltipMessage: { type: PropType>; default: boolean; }; tooltipPosition: { type: PropType<"inner" | "outer" | number>; default: string; }; placeholder: { type: PropType; }; disabled: { type: PropType; }; readonly: { type: PropType; }; options: { type: PropType< FieldOption[] | FieldOptionsLoader>; }; visible: { type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[]; default: boolean; }; cascader: { type: PropType; }; error: { type: StringConstructor; }; tip: { type: StringConstructor; }; inline: { type: BooleanConstructor; }; hidden: { type: BooleanConstructor; }; defaultValue: { type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor)[]; default: undefined; }; }>, { fieldValue: Ref; itemRef: Ref; editorRef: Ref; focus: () => void; blur: () => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { focus: () => any; blur: () => any; change: (value: any, data?: any) => any; "update:modelValue": (value: any) => any; }, string, PublicProps, Readonly< ExtractPropTypes<{ name: { type: StringConstructor; }; label: { type: StringConstructor; }; editor: { type: PropType< BuiltinFieldEditorType | VNode | Record>; default: string; }; props: { type: PropType>; }; modelValue: { type: PropType; default(context: any): any; }; size: { type: PropType; }; width: { type: PropType; }; tooltipMessage: { type: PropType>; default: boolean; }; tooltipPosition: { type: PropType<"inner" | "outer" | number>; default: string; }; placeholder: { type: PropType; }; disabled: { type: PropType; }; readonly: { type: PropType; }; options: { type: PropType< FieldOption[] | FieldOptionsLoader>; }; visible: { type: (BooleanConstructor | ObjectConstructor | FunctionConstructor)[]; default: boolean; }; cascader: { type: PropType; }; error: { type: StringConstructor; }; tip: { type: StringConstructor; }; inline: { type: BooleanConstructor; }; hidden: { type: BooleanConstructor; }; defaultValue: { type: (BooleanConstructor | NumberConstructor | StringConstructor | ObjectConstructor | ArrayConstructor)[]; default: undefined; }; }>> & Readonly<{ onFocus?: (() => any) | undefined; onBlur?: (() => any) | undefined; onChange?: ((value: any, data?: any) => any) | undefined; "onUpdate:modelValue"?: ((value: any) => any) | undefined; }>, { hidden: boolean; visible: boolean | Function | Record; inline: boolean; modelValue: any; defaultValue: string | number | boolean | Record | unknown[]; editor: Record | VNode | BuiltinFieldEditorType; tooltipMessage: boolean | Partial< UseTooltipProps>; tooltipPosition: number | "outer" | "inner"; }, {}, {}, {}, string, ComponentProvideOptions, true, { itemRef: ({ $: ComponentInternalInstance; $data: {}; $props: { readonly label?: string | undefined; readonly labelWidth?: string | number | undefined; readonly labelPosition?: "left" | "right" | "top" | "" | undefined; readonly prop?: FormItemProp | undefined; readonly required?: boolean | undefined; readonly rules?: Arrayable | undefined; readonly error?: string | undefined; readonly validateStatus?: FormItemValidateState | undefined; readonly for?: string | undefined; readonly inlineMessage?: boolean | undefined; readonly showMessage?: boolean | undefined; readonly size?: ComponentSize | undefined; } & VNodeProps & AllowedComponentProps & ComponentCustomProps; $attrs: Attrs; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: Slot | undefined; }>; $root: ComponentPublicInstance | null; $parent: ComponentPublicInstance | null; $host: Element | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: ComponentOptionsBase & Readonly<{}>, { size: ComputedRef<"" | "default" | "small" | "large">; validateMessage: Ref; validateState: Ref<"" | "error" | "success" | "validating", "" | "error" | "success" | "validating">; validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult; clearValidate: () => void; resetField: () => void; setInitialValue: (value: any) => void; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, { required: boolean; labelPosition: "left" | "right" | "top" | ""; inlineMessage: boolean; showMessage: boolean; }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle; } & Readonly<{ required: boolean; labelPosition: "left" | "right" | "top" | ""; inlineMessage: boolean; showMessage: boolean; }> & Omit & Readonly<{}>, "size" | "required" | "validateState" | "clearValidate" | "validate" | "labelPosition" | "inlineMessage" | "showMessage" | "validateMessage" | "resetField" | "setInitialValue"> & { size: "" | "large" | "default" | "small"; validateMessage: string; validateState: "" | "success" | "error" | "validating"; validate: (trigger: string, callback?: FormValidateCallback) => FormValidationResult; clearValidate: () => void; resetField: () => void; setInitialValue: (value: any) => void; } & {} & ComponentCustomProperties & {} & { $slots: { label?: (props: { label: string; }) => any; } & { default?: (props: {}) => any; } & { error?: (props: { error: string; }) => any; }; }) | null; editorRef: unknown; }, any>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };