import type { Snippet } from 'svelte'; import { type Klass, type LexicalNode, type LexicalNodeReplacement, type LexicalEditor, type EditorThemeClasses, type HTMLConfig, type EditorState } from 'lexical'; export type InitialEditorStateType = null | string | EditorState | ((editor: LexicalEditor) => void); export type InitialConfigType = Readonly<{ namespace: string; nodes?: ReadonlyArray | LexicalNodeReplacement>; onError: (error: Error, editor: LexicalEditor) => void; editable?: boolean; theme?: EditorThemeClasses; editorState?: InitialEditorStateType; html?: HTMLConfig; }>; interface Props { initialConfig: InitialConfigType; children: Snippet; } declare const Composer: import("svelte").Component; type Composer = ReturnType; export default Composer;