import { r as EditorThemeInput } from "./types-DUTo2zJ5.cjs";
import { Content, Editor, Extensions, JSONContent } from "@tiptap/core";
import * as _$react from "react";
import { ReactNode } from "react";

//#region src/email-editor/email-editor.d.ts
interface EmailEditorRef {
  getEmail: () => Promise<{
    html: string;
    text: string;
  }>;
  getEmailHTML: () => Promise<string>;
  getEmailText: () => Promise<string>;
  getJSON: () => JSONContent;
  editor: Editor | null;
}
interface EmailEditorProps {
  content?: Content;
  onUpdate?: (ref: EmailEditorRef) => void;
  onReady?: (ref: EmailEditorRef) => void;
  theme?: EditorThemeInput;
  editable?: boolean;
  placeholder?: string;
  bubbleMenu?: {
    hideWhenActiveNodes?: string[];
    hideWhenActiveMarks?: string[];
  };
  extensions?: Extensions;
  onUploadImage?: (file: File) => Promise<{
    url: string;
  }>;
  className?: string;
  children?: ReactNode;
}
declare const EmailEditor: _$react.ForwardRefExoticComponent<EmailEditorProps & _$react.RefAttributes<EmailEditorRef>>;
//#endregion
export { EmailEditor, type EmailEditorProps, type EmailEditorRef };
//# sourceMappingURL=index.d.cts.map