import { type DOMConversionMap, type DOMExportOutput, type EditorConfig, type ElementFormatType, type LexicalEditor, type LexicalNode, type NodeKey, type Spread } from 'lexical'; import { DecoratorBlockNode, SerializedDecoratorBlockNode } from '@lexical/react/LexicalDecoratorBlockNode'; import { AlertColor } from '@mui/material/Alert'; import type { JSX } from 'react'; export type SerializedAlertNode = Spread<{ type: 'alert'; text: string; severity: AlertColor; }, SerializedDecoratorBlockNode>; export declare class AlertNode extends DecoratorBlockNode { __text: string; __severity: AlertColor; static getType(): string; static clone(node: AlertNode): AlertNode; constructor(text: string, severity: AlertColor, format?: ElementFormatType, key?: NodeKey); exportDOM(): DOMExportOutput; static importDOM(): DOMConversionMap | null; static importJSON(serializedNode: SerializedAlertNode): AlertNode; exportJSON(): SerializedAlertNode; getText(): string; setText(text: string): void; getSeverity(): string; setSeverity(severity: AlertColor): void; decorate(editor: LexicalEditor, config: EditorConfig): JSX.Element; isInline(): false; } export declare function $createAlertNode(text: string, severity: AlertColor): AlertNode; export declare function $isAlertNode(node: LexicalNode | null | undefined): node is AlertNode;