import { type JSONContent } from '@tiptap/core';
import type { DocumentEditorCommonProps, DocumentEditorMode } from '../document-editor-options.js';
type HtmlEditorProps = DocumentEditorCommonProps & {
    mode?: Exclude<DocumentEditorMode, 'template'>;
    contentFormat?: 'html';
    content?: string;
};
type TemplateEditorProps = DocumentEditorCommonProps & {
    mode: 'template';
    contentFormat?: 'json';
    content?: JSONContent;
};
type JsonReadonlyEditorProps = DocumentEditorCommonProps & {
    mode: 'readonly';
    contentFormat: 'json';
    content?: JSONContent;
};
type Props = HtmlEditorProps | TemplateEditorProps | JsonReadonlyEditorProps;
declare const DocumentEditor: import("svelte").Component<Props, {}, "content">;
type DocumentEditor = ReturnType<typeof DocumentEditor>;
export default DocumentEditor;
