import React, { type ReactHTML } from "react";
export type RichTextContent = {
    type: "doc" | "paragraph" | "blockquote" | "codeBlock" | "bulletList" | "listItem" | "orderedList";
    content?: RichTextContent[];
    attrs: {
        language: string | null;
    };
} | {
    type: "codeBlock";
    attrs: {
        language: string | null;
    };
    content?: {
        type: "text";
        text: string;
    }[];
} | {
    type: "heading";
    content?: RichTextContent[];
    attrs: {
        level: 1 | 2 | 3 | 4;
    };
} | {
    type: "text";
    text: string;
    marks?: ({
        type: "bold" | "italic" | "code" | "link";
    } | {
        type: "link";
        attrs: {
            href: string;
            target: string;
            rel: string;
            class: string;
        };
    })[];
};
declare const RichText: ({ data, components, }: {
    data: RichTextContent | RichTextContent[];
    components?: ReactHTML;
}) => (string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined)[];
export default RichText;
