import type { FormErrors } from '../../../utils/formContext.js'; export type SchemaFieldType = 'text' | 'email' | 'password' | 'number' | 'tel' | 'url' | 'textarea' | 'select' | 'toggle' | 'checkbox' | 'date' | 'radio' | 'multiselect'; export interface SchemaFieldOption { value: string; label: string; } export interface SchemaField { name: string; label: string; type?: SchemaFieldType; placeholder?: string; helperText?: string; required?: boolean; disabled?: boolean; options?: SchemaFieldOption[]; /** Group heading before this field */ section?: string; defaultValue?: string | boolean | number | string[]; } export type SchemaFormValue = string | boolean | number | string[]; export type SchemaFormValues = Record; interface SchemaFormProps { schema?: SchemaField[]; values?: SchemaFormValues; errors?: FormErrors; title?: string; description?: string; submitLabel?: string; cancelLabel?: string; showCancel?: boolean; loading?: boolean; class?: string; onsubmit?: (values: SchemaFormValues) => void; oncancel?: () => void; } declare const SchemaForm: import("svelte").Component; type SchemaForm = ReturnType; export default SchemaForm;