import type { ReactNode, Ref } from 'react';
import type { ForwardRefForwardPropsComponent, TestIdProp, WithAttributes } from '../../types';
import type { FormDialogProps } from '../Dialog';
import type { elements } from './InlineEdit.test-ids';
export type InlineEditProps = WithAttributes<'div', TestIdProp<typeof elements> & Pick<FormDialogProps, 'progress'> & {
    /** Editable content. */
    children: ReactNode;
    /** Accessible label for the editable content. */
    contextualLabel: string;
    /**
     * Form content for updating the editable content rendered within a dialog.
     * Pass this value to show the dialog and conversely set to undefined to hide.
     */
    editForm?: ReactNode;
    /** Called when the edit button is clicked. */
    onEdit: () => void;
    /** Called when the user cancels the edit. */
    onCancel: () => void;
    /** Called when the user confirms the edit. */
    onSubmit: () => void;
    /** Ref forwarded to the wrapping element. */
    ref?: Ref<HTMLDivElement>;
}>;
declare const InlineEdit: ForwardRefForwardPropsComponent<InlineEditProps>;
export default InlineEdit;
//# sourceMappingURL=InlineEdit.d.ts.map