import React from 'react'; export interface Rule { type?: 'text' | 'password' | 'search' | 'number' | 'url' | 'email'; required?: boolean; pattern?: RegExp; message?: string; min?: number; max?: number; } export interface Validation { [key: string]: Array; } export interface FormData { [key: string]: number | string | Array; } export interface FormProps { backgroundColor?: string; borderColor?: string; textColor?: string; round?: boolean; inline?: boolean; id?: string; style?: React.CSSProperties; className?: string; children?: React.ReactNode; onSubmit?: (e: any, data: FormData) => void; validation?: Validation; compact?: boolean; } export declare const defaultFormProps: Partial; export declare function Form(props: FormProps): JSX.Element; export declare namespace Form { var Item: { (props: import("./FormItem").FormItemProps): JSX.Element; defaultProps: Partial; }; var Row: { (props: import("./FormRow").FormRowProps): JSX.Element; defaultProps: Partial; }; } export default Form;