/** * Form Container Components * * Core form structure and state management components */ import type { FormState, FormSubmitHandler, FieldValidation } from '../../types'; export interface FormProps { onSubmit?: FormSubmitHandler; validation?: Record; initialValues?: Record; children?: any; className?: string; id?: string; resetOnSubmit?: boolean; validateOnSubmit?: boolean; [key: string]: any; } export interface FormSectionProps { title?: string; description?: string; children?: any; className?: string; collapsible?: boolean; defaultExpanded?: boolean; [key: string]: any; } export declare class Form { readonly properties: FormProps; readonly type = "form-container"; private formState; constructor(properties: FormProps); get state(): FormState; handleSubmit(): Promise; register(fieldName: string, validation?: FieldValidation): void; setValue(fieldName: string, value: any): void; getValue(fieldName: string): any; getError(fieldName: string): string | undefined; validateField(fieldName: string): Promise; validateForm(): Promise; resetForm(): void; render(): HTMLElement; } export declare class FormSection { readonly properties: FormSectionProps; readonly type = "form-section"; private expanded; private setExpanded; constructor(properties: FormSectionProps); get isExpanded(): boolean; toggle(): void; expand(): void; collapse(): void; render(): HTMLElement; } export declare function form(props: FormProps): Form; export declare function formSection(props: FormSectionProps): FormSection; export type { FormState, FormSubmitHandler, FieldValidation }; //# sourceMappingURL=index.d.ts.map