import { DOMConversionMap, DOMExportOutput, EditorConfig, ElementDOMSlot, ElementNode, LexicalNode, LexicalUpdateJSON, NodeKey, SerializedElementNode, Spread } from "lexical"; declare const ALERT_TYPES: readonly ["note", "tip", "important", "warning", "caution"]; type AlertType = (typeof ALERT_TYPES)[number]; declare const DEFAULT_ALERT_TYPE: AlertType; type SerializedAlertNode = Spread<{ alertType: AlertType; }, SerializedElementNode>; declare const ALERT_HEADER_SELECTOR = "[data-alert-header=\"true\"]"; declare function isAlertType(value: unknown): value is AlertType; declare function normalizeAlertType(value: unknown): AlertType; declare class AlertNode extends ElementNode { __alertType: AlertType; static getType(): string; static clone(node: AlertNode): AlertNode; static importJSON(serializedNode: SerializedAlertNode): AlertNode; static importDOM(): DOMConversionMap | null; constructor(alertType?: AlertType, key?: NodeKey); createDOM(config: EditorConfig): HTMLElement; updateDOM(prevNode: this, dom: HTMLElement): boolean; getDOMSlot(element: HTMLElement): ElementDOMSlot; exportDOM(): DOMExportOutput; exportJSON(): SerializedAlertNode; updateFromJSON(serializedNode: LexicalUpdateJSON): this; getAlertType(): AlertType; setAlertType(alertType: AlertType): this; isShadowRoot(): boolean; canBeEmpty(): boolean; canIndent(): boolean; } declare function $createAlertNode(alertType?: AlertType): AlertNode; declare function $isAlertNode(node: LexicalNode | null | undefined): node is AlertNode; export { $createAlertNode, $isAlertNode, ALERT_HEADER_SELECTOR, ALERT_TYPES, AlertNode, AlertType, DEFAULT_ALERT_TYPE, SerializedAlertNode, isAlertType, normalizeAlertType };