/// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// /// import type { ObjectSchema } from '@becomes/purple-cheetah/types'; import { Schema } from 'mongoose'; import type { BCMSPropValueWidgetData, BCMSPropParsed } from '../../prop'; export interface BCMSEntryContent { lng: string; nodes: BCMSEntryContentNode[]; plainText: string; } export declare const BCMSEntryContentFSDBSchema: ObjectSchema; export declare const BCMSEntryContentMongoDBSchema: Schema, {}, {}, {}, {}, "type", { lng: string; nodes: any[]; planeText?: string | undefined; }>; export interface BCMSEntryContentNode { type: BCMSEntryContentNodeType; content?: BCMSEntryContentNode[]; attrs?: BCMSEntryContentNodeHeadingAttr | BCMSPropValueWidgetData | BCMSEntryContentNodeLinkAttr; marks?: BCMSEntryContentNodeMarker[]; text?: string; } export interface BCMSEntryContentNodeHeadingAttr { level: number; } export interface BCMSEntryContentNodeLinkAttr { href: string; target: string; } export interface BCMSEntryContentNodeMarker { type: BCMSEntryContentNodeMarkerType; attrs?: BCMSEntryContentNodeLinkAttr; } export declare enum BCMSEntryContentNodeType { paragraph = "paragraph", heading = "heading", widget = "widget", bulletList = "bulletList", listItem = "listItem", orderedList = "orderedList", text = "text", codeBlock = "codeBlock", hardBreak = "hardBreak" } export declare enum BCMSEntryContentNodeMarkerType { bold = "bold", italic = "italic", underline = "underline", strike = "strike", link = "link", inlineCode = "inlineCode" } export interface BCMSEntryContentParsedItem { type: BCMSEntryContentNodeType; attrs?: { level?: number; }; name?: string; value: string | BCMSPropParsed; } export interface BCMSEntryContentParsed { [lng: string]: BCMSEntryContentParsedItem[]; }