import { AutoSizedTextAreaProps } from "../TextArea/AutoSizeTextArea.js";
import { FC } from "react";

//#region src/components/ContentEditor/ContentEditor.d.ts
/** Props for the ContentEditor component */
type ContentEditorProps = {
  /** The current content to display and edit */
  children: string;
  /** Callback function called when content is saved/validated */
  onContentChange: (content: string) => void;
  /** Whether the editor is currently in editing mode */
  isEditing?: boolean;
} & AutoSizedTextAreaProps;
/**
 * ContentEditor Component
 *
 * An inline editing component that allows users to edit text content with
 * validation and cancellation options. Built on top of AutoSizedTextArea
 * for flexible text editing experiences.
 *
 * ## Features
 * - **Inline Editing**: Edit content directly in place with visual feedback
 * - **Auto-sizing**: Textarea automatically adjusts to content size
 * - **Validation Controls**: Check and X buttons appear when content is modified
 * - **Keyboard Support**: Full keyboard navigation and accessibility
 * - **State Management**: Handles editing states and content validation
 *
 * ## Accessibility
 * - Proper ARIA labels for all interactive elements
 * - Keyboard navigation support (Tab, Enter, Escape)
 * - Screen reader announcements for state changes
 * - Focus management between edit and display modes
 *
 * @param children - The current content to display and edit
 * @param onContentChange - Callback when content is saved
 * @param isEditing - Whether editor is in editing mode
 * @param props - Additional AutoSizedTextArea props
 */
declare const ContentEditor: FC<ContentEditorProps>;
//#endregion
export { ContentEditor, ContentEditorProps };
//# sourceMappingURL=ContentEditor.d.ts.map