import type { LuFormRules, LuFormErrors } from "./LuForm.types"; /** * Form wrapper component providing validation context. * * 🤖 **AI Agent Usage Notes (Zero-Raw-HTML Adherence)**: * - ⛔ NEVER build complex manual validation logic with raw HTML forms. * - Always use `` to wrap inputs and leverage the built-in validation system. * - Use `LuForm` context to disable nested fields (`disabled` prop). */ interface LuFormProps { /** Validation rules mapping field names to validators. */ rules?: LuFormRules; /** When to trigger validation. @default 'submit' */ validateOn?: "submit" | "blur" | "both"; /** Whether to reset all fields upon successful submit. @default false */ resetOnSubmit?: boolean; /** Disables the form and all its registered fields. @default false */ disabled?: boolean; } declare function handleSubmit(): Promise; declare function handleReset(): void; declare var __VLS_1: {}, __VLS_3: { errors: LuFormErrors; hasErrors: boolean; }, __VLS_5: { submit: typeof handleSubmit; reset: typeof handleReset; pending: boolean; }; type __VLS_Slots = {} & { default?: (props: typeof __VLS_1) => any; } & { errors?: (props: typeof __VLS_3) => any; } & { actions?: (props: typeof __VLS_5) => any; }; declare const __VLS_component: import("vue").DefineComponent>; pending: Readonly>; values: import("vue").ComputedRef>; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { submit: (values: Record) => any; reset: () => any; error: (errors: LuFormErrors) => any; }, string, import("vue").PublicProps, Readonly & Readonly<{ onSubmit?: ((values: Record) => any) | undefined; onReset?: (() => any) | undefined; onError?: ((errors: LuFormErrors) => any) | undefined; }>, { disabled: boolean; rules: LuFormRules; validateOn: "submit" | "blur" | "both"; resetOnSubmit: boolean; }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const _default: __VLS_WithSlots; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };