/** * Reactive form creation and management. * * @module bquery/forms */ import type { Form, FormConfig } from './types'; /** * Creates a fully reactive form with field-level validation, * dirty/touched tracking, cross-field validation, and submission handling. * * @example * ```ts * import { createForm, required, email, min } from '@bquery/bquery/forms'; * * const form = createForm({ * fields: { * name: { initialValue: '', validators: [required()] }, * email: { initialValue: '', validators: [required(), email()] }, * age: { initialValue: 0, validators: [min(18, 'Must be 18+')] }, * }, * onSubmit: async (values) => { * await fetch('/api/register', { method: 'POST', body: JSON.stringify(values) }); * }, * }); * ``` */ export declare const createForm: >(config: FormConfig) => Form; //# sourceMappingURL=create-form.d.ts.map