import React from "react"; import type { Monaco } from "@monaco-editor/react"; import type { editor } from "monaco-editor"; export type HTMLValidator = (code: string, editor: editor.IStandaloneCodeEditor, monaco: Monaco) => boolean; interface MonacoCodeEditorProps { code: string; onSave: (code: string) => void; onCancel: () => void; onValidationChange?: (isValid: boolean) => void; validator?: HTMLValidator; } /** * Default HTML validator using Monaco's markers and DOMParser * Checks for: * - Monaco language service errors * - Incomplete/malformed tags * - Mismatched angle brackets * - Unclosed tags */ export declare const defaultHTMLValidator: HTMLValidator; export declare const MonacoCodeEditor: React.FC; export {};