import { InputProps } from '../input';
import { TextAreaProps } from '../textarea';
import { InlineEditTag } from './types';
import './inline-edit.less';
export type InlineEditProps = {
    value?: string;
    placeholder?: string;
    isMultiline?: boolean;
    typoClassName?: string;
    className?: string;
    overrideTag?: InlineEditTag;
    onSubmit: (val?: string) => void;
    onChange?: (val?: string) => void;
    onCancel?: () => void;
    inputProps?: Partial<InputProps>;
    textareaProps?: Partial<TextAreaProps>;
    textTestId?: string;
    textWrapperTestId?: string;
    confirmTestId?: string;
    inputTestId?: string;
    rows?: 2 | 3 | 4;
    autoFocus?: boolean;
    readOnly?: boolean;
    submitAriaLabel?: string;
    cancelAriaLabel?: string;
    loadingAriaLabel?: string;
    isLoading?: boolean;
    editableTextAriaLabel?: string;
};
/**
 * @midnight-gray-supported
 * @uxr-only-supported
 * @alpine-light-supported
 * */
export default function InlineEdit({ onSubmit, placeholder, textTestId, textWrapperTestId, inputTestId, value, className, overrideTag, onChange, isMultiline, typoClassName, inputProps, textareaProps, autoFocus, rows, readOnly, submitAriaLabel, cancelAriaLabel, onCancel, isLoading, loadingAriaLabel, editableTextAriaLabel, }: InlineEditProps): import("react/jsx-runtime").JSX.Element;
