UNPKG

notion-block-renderer

Version:
19 lines (18 loc) 614 B
/// <reference types="react" /> import { AnnotationType, RichTextType } from "./types/types"; export declare function annotationToClassName(annotations: AnnotationType, prefix?: string): string; export declare const Context: import("react").Context<{ prefix: string; blockPrefix: string; blocksPrefix: string; isCodeHighlighter: boolean; syntaxHighlighterCSS: { [key: string]: import("react").CSSProperties; }; }>; /** * * @param richTextArr - array of rich_text objects * @returns joined text */ export declare const getJoinedRichText: (richTextArr: RichTextType[]) => string;