import type { LexicalEditor } from 'lexical'; import { type Component, type Snippet, type ComponentProps } from 'svelte'; export interface ErrorBoundaryProps { failed: Snippet<[error: any, reset: () => void]>; } export type Decorator> = { component: T; props: ComponentProps; }; interface DecoratorProps { editor: LexicalEditor; errorBoundary: ErrorBoundaryProps; } declare const Decorators: Component; type Decorators = ReturnType; export default Decorators;