import type { LexicalEditor } from 'lexical'; import React from 'react'; interface ErrorBoundaryProps { children: JSX.Element; onError: (error: Error) => void; } export declare type ErrorBoundaryType = React.ComponentClass | React.FC; export declare function useDecorators(editor: LexicalEditor, ErrorBoundary: ErrorBoundaryType): JSX.Element[]; export {};