import { z } from "zod"; import { ValidationEnhancer } from "./validation-enhancer"; import { ValidatableInput } from "./validatable-input"; /** * Version of validation-enhancer with zod compatibility. * * Used as validation-enhancer. Once the custom element is defined, * call `setZodSchema()` to provide a zod schema for validation. */ export declare class ValidationEnhancerZod extends ValidationEnhancer { #private; constructor(); /** * Get the current zod schema * @returns The zod schema, or null if not set */ getZodSchema(): z.ZodObject>>, z.core.$strip> | null; /** * Set the zod schema * @param zodSchema The zod schema to validate form inputs against */ setZodSchema(zodSchema: z.ZodObject>): void; /** * Override existing focus out and submit validation to use zod * @param input The input element to validate * @returns boolean, whether the input has passed validation */ validateInput(input: HTMLElement): boolean; /** * Override existing typing validation to use zod * @param input - The input element to validate * @returns boolean, whether the input has passed validation */ validateInputPolitely(input: HTMLElement): boolean; /** * Validate an input using the zod schema * @param input The input element to validate with zod * @returns boolean, whether the input value passed zod validation */ validateInputWithZod(input: ValidatableInput): boolean | undefined; }