import { type FormLayout } from './form-layout'; import type { ActionFieldDef } from './types'; import { buildZodSchema, resolveWidget } from './dynamic-form-schema'; export { buildZodSchema, resolveWidget }; export { DynamicLineItems } from './dynamic-line-items'; export { DynamicSelectField } from './dynamic-select-field'; export { DynamicMultiSelectField } from './dynamic-multi-select-field'; export { DynamicDateField } from './dynamic-date-field'; export { UploadField } from './upload-field'; export { IconPickerField } from './icon-picker-field'; export { ColorPickerField, DEFAULT_ROLE_COLOR, normalizeHex } from './color-picker-field'; export interface DynamicFormProps { fields: ActionFieldDef[]; initialValues?: Record; onSubmit: (values: Record) => void | Promise; onCancel?: () => void; submitLabel?: string; cancelLabel?: string; disabled?: boolean; /** * Declarative form layout served on the model metadata (kernel PR #230). * When present the visible fields are grouped by their `section` respecting * `sections` order: `mode:"sections"` stacks (optionally collapsible) * sections; `mode:"steps"` renders a Anterior/Siguiente wizard. Absent → the * legacy flat list (unchanged). */ formLayout?: FormLayout; } export declare function DynamicForm({ fields, initialValues, onSubmit, onCancel, submitLabel, cancelLabel, disabled, formLayout, }: DynamicFormProps): import("react").JSX.Element; //# sourceMappingURL=dynamic-form.d.ts.map