// AUTO-GENERATED by scripts/generate-wrappers.mjs — do not edit by hand.
// Source: packages/core/manifest.json (component "whatsapp-editor").
import type { ElementType, ReactNode } from 'react';
import { WhatsappEditor as WhatsappEditorController, type WhatsappEditorOptions } from '@42/core/whatsapp-editor';
import { C42 } from '../C42';
const DEFAULT_HTML: string | null = "\n
\n
\n \n \n \n \n \n \n \n \n
\n \n \n \n
\n \n
\n \n \n \n \n \n
\n \n ";
export interface WhatsappEditorProps extends Partial {
/** Element/tag rendered as the controller root. Defaults to `"div"`. */
as?: ElementType;
className?: string;
children?: ReactNode;
/** Fired on `whatsappeditor:change` — detail: `{ text, html, length }` */
onChange?: (detail: unknown, event: CustomEvent) => void;
/** Fired on `whatsappeditor:format` — detail: `{ marker, text }` */
onFormat?: (detail: unknown, event: CustomEvent) => void;
/** Extra props are forwarded to the rendered `