import { Node } from '@tiptap/core'; /** * 透传给外部 onStartCoding 的节点 attrs 类型。 * * 当前节点仅持有 id,因此明确收敛到 { id } 形状;后续如需扩展属性, * 应当在此处同步扩展类型,避免外部依赖一个过宽的对象结构。 */ export type VibeCodingAttrs = { id: string | null; }; export interface VibeCodingOptions { HTMLAttributes: Record; onStartCoding?: (attrs: VibeCodingAttrs) => void; } declare module '@tiptap/core' { interface Commands { vibecoding: { /** * 插入 Vibe Coding 块节点。 */ setVibeCoding: () => ReturnType; }; } } export declare const VibeCoding: Node; export default VibeCoding;