import React from 'react'; import { z } from 'zod'; import type { ActionResult } from '../index.js'; import { type ZodValidationAttrs } from './helpers.js'; export declare const useForm: () => { state: undefined; schema: undefined; debug: boolean; } | { state: ActionResult; schema: Schema; debug: boolean | undefined; }; type UseFieldReturn = { invalid: string[] | undefined; value: any; input: { id: string; name: string; 'aria-invalid': boolean; autoComplete: 'on' | 'off' | undefined; defaultValue?: string; defaultChecked?: boolean; } & Omit; }; export declare const useField: () => UseFieldReturn; export declare function Form({ children, action, state, schema, className, reset, onSuccess, onError, debug, ...props }: React.ComponentProps<'form'> & { children: React.ReactNode; action: (payload: FormData) => void; state: ActionResult; schema: Schema; className?: string; reset?: boolean; onSuccess?: (data: any, formData: z.TypeOf | undefined) => void; onError?: (error: string) => void; debug?: boolean; }): React.JSX.Element; export declare function FormField({ render, name, }: { render: (field: ReturnType) => React.ReactNode; name: keyof z.TypeOf; }): React.JSX.Element; export {}; //# sourceMappingURL=index.d.ts.map