export interface TiptapNode { type: string; attrs?: Record; content?: TiptapNode[]; marks?: TiptapMark[]; text?: string; } export interface TiptapMark { type: string; attrs?: Record; } export interface TiptapDoc { type: "doc"; content: TiptapNode[]; }