lexical-vue
Version:
An extensible Vue 3 web text-editor based on Lexical.
9 lines (8 loc) • 433 B
TypeScript
import { type HeadingTagType } from '@lexical/rich-text';
import { type LexicalEditor, type NodeKey } from 'lexical';
export type TableOfContentsEntry = [
key: NodeKey,
text: string,
tag: HeadingTagType
];
export declare function useTableOfContents(editor: LexicalEditor): import("vue").Ref<[key: string, text: string, tag: HeadingTagType][], TableOfContentsEntry[] | [key: string, text: string, tag: HeadingTagType][]>;