import type { ShortcodeConfig } from '../../../../interface'; import type { MdValue } from '../plateTypes'; import type { BlockType, LeafType } from './slate/ast-types'; export interface MdLeafType extends LeafType { superscript?: boolean; subscript?: boolean; underline?: boolean; color?: string; backgroundColor?: string; } export interface MdBlockType extends Omit { children: Array; } export interface SerializeMarkdownOptions { useMdx: boolean; shortcodeConfigs?: Record>; } export default function serializeMarkdown(slateValue: MdValue, { useMdx, shortcodeConfigs }: SerializeMarkdownOptions): string;