import { FormProps } from 'antd';
import { Rule } from 'antd/es/form';
import React from 'react';
type InlineForm<T> = (props: Props<T>) => JSX.Element;
interface Props<T> extends React.PropsWithChildren, Omit<FormProps, 'children'> {
    label?: React.ReactNode;
    value?: T;
    initialValue: T;
    onSubmit?: (inputValue: T) => Promise<void | Error> | void;
    required?: boolean;
    isPassword?: boolean;
    rules?: Rule[];
    testId?: string;
    valueFormatter?: (value: T) => string;
    open?: boolean;
    onEdit?: () => void;
    onCancel?: () => void;
}
declare function InlineForm<T>({ label, children, valueFormatter, initialValue, value, isPassword, rules, required, testId, onSubmit, onEdit, onCancel, open, ...formProps }: Props<T>): JSX.Element;
export default InlineForm;
//# sourceMappingURL=InlineForm.d.ts.map