/** * TachUI Forms State Management * * Reactive form state management with validation, field tracking, * and form lifecycle management using TachUI's signal system. */ import type { FieldValidation, UseFormReturn } from '../types'; /** * Create a form state manager */ export declare function createFormState(initialValues?: Record): UseFormReturn; /** * Form field hook for individual field management */ export declare function createField(_name: string, initialValue?: T, validation?: FieldValidation): { value: () => T; setValue: (value: T) => void; error: () => string | undefined; touched: () => boolean; dirty: () => boolean; valid: () => boolean; validating: () => boolean; focused: () => boolean; onFocus: () => void; onBlur: () => void; validate: () => Promise; reset: () => void; }; /** * Multi-step form state manager */ export declare function createMultiStepFormState(steps: string[], initialValues?: Record): { currentStep: import("@tachui/core").Signal; completedSteps: import("@tachui/core").Signal>; nextStep: (validateCurrent?: boolean) => Promise; previousStep: () => boolean; goToStep: (stepIndex: number) => boolean; getCurrentForm: () => UseFormReturn | undefined; getAllValues: () => Record; validateAllSteps: () => Promise; getStepForm: (stepIndex: number) => UseFormReturn | undefined; isStepCompleted: (stepIndex: number) => boolean; canGoToStep: (stepIndex: number) => boolean; }; export { validateValueAsync } from '../validation'; //# sourceMappingURL=index.d.ts.map