import { ZodType, ZodIssue, SafeParseReturnType } from "zod"; import type { Zorm } from "./types"; export interface ValidSubmitEvent { /** * Prevent the default form submission */ preventDefault(): void; /** * The form HTML Element */ target: HTMLFormElement; /** * Zod validated and parsed data */ data: Data; } export interface UseZormOptions> { /** * Called when the form is submitted with valid data */ onValidSubmit?: (event: ValidSubmitEvent) => any; setupListeners?: boolean; customIssues?: ZodIssue[]; onFormData?: (event: FormDataEvent) => any; } export declare function useZorm>(formName: string, schema: Schema, options?: UseZormOptions>): Zorm; //# sourceMappingURL=use-zorm.d.ts.map