import type { InjectionKey, Ref } from "vue"; export type LuFormValidator = (value: unknown) => string | null | Promise; export type LuFormRules = Record; export type LuFormErrors = Record; export interface LuFormFieldRegistration { name: string; getValue: () => unknown; setValue: (v: unknown) => void; setError: (msg: string | null) => void; } export declare const LuFormContextKey: InjectionKey; export interface LuFormContext { register(field: LuFormFieldRegistration): void; unregister(name: string): void; getError(name: string): string | null; validateOn: Readonly>; disabled: Readonly>; }