import { LexicalCommand, LexicalEditor } from 'lexical'; import { type JSX } from 'react'; import { AutoEmbedOption } from '@lexical/react/LexicalAutoEmbedPlugin'; import { EditorConfig } from '../../config'; type PostType = 'post' | 'blog' | 'doc' | 'task'; type Payload = { id: string; type: PostType; url: string; title: string; boardId: string; external?: boolean; }; export declare const INSERT_POST_LINK_COMMAND: LexicalCommand; /** * 创建 "Embed Post Link" AutoEmbedOption * 未挂载 discuss kit 或 url 不匹配 discussion/blog/doc 详情页 => 不显示 "Embed Post Link" option */ export declare const createPostLinkAutoEmbedOption: (editor: LexicalEditor, editorConfig: EditorConfig) => AutoEmbedOption | null; export default function PostLinkEmbedPlugin(): JSX.Element | null; export {};