import type { Child, Properties } from 'hastscript'; import { ColorProps } from './color.js'; import { RichTextItem, RichTexttoHastOpts } from './types.js'; export type RichTextTextItem = Extract; export declare function colorText(richTextColor: string): [string, string]; export declare class RichTextToHast { protected colorProps: ColorProps; protected defaultClassName: boolean; private propertiesMap; constructor(opts?: RichTexttoHastOpts, colorProps?: ColorProps); protected props(key: string): Properties; textToHast(text: RichTextTextItem): Child; build(richTextItems: RichTextItem[]): Promise; }