import React from 'react';
import type { HTMLAttributes, SyntheticEvent } from 'react';
/**
* Based on https://github.com/lovasoa/react-contenteditable
* A simple component for a html element with editable contents.
*/
export declare const ContentEditable: React.NamedExoticComponent>;
export type ContentEditableEvent = SyntheticEvent & {
target: {
name?: string;
value: string;
};
};
export interface ContentEditableProps extends HTMLAttributes {
disabled?: boolean;
name?: string;
onChange?: (event: ContentEditableEvent) => void;
placeholder?: string;
tagName?: string;
value?: string;
}