import React from "react";
import { ValidationSchema } from "../../../utils/validation";
interface FormField {
    name: string;
    label: string;
    type?: "text" | "email" | "password" | "textarea" | "select" | "checkbox" | "radio";
    required?: boolean;
    error?: string;
    value: any;
    onChange: (value: any) => void;
    options?: Array<{
        value: string;
        label: string;
    }>;
    placeholder?: string;
}
interface FormProps {
    fields: FormField[];
    onSubmit: (data: Record<string, any>) => void | Promise<void>;
    submitLabel?: string;
    cancelLabel?: string;
    onCancel?: () => void;
    loading?: boolean;
    error?: string;
    success?: string;
    className?: string;
    validation?: ValidationSchema | ((data: Record<string, any>) => Record<string, string>);
}
export declare const Form: React.FC<FormProps>;
export default Form;
//# sourceMappingURL=index.d.ts.map