import * as react_jsx_runtime from 'react/jsx-runtime';
import { ReactHTML, ReactNode } from 'react';

type Content = {
    type: "doc" | "paragraph" | "blockquote" | "codeBlock" | "bulletList" | "listItem";
    content?: Content[];
    attrs: {
        language: string | null;
    };
} | {
    type: "codeBlock";
    attrs: {
        language: string | null;
    };
    content?: {
        type: "text";
        text: string;
    }[];
} | {
    type: "heading";
    content?: Content[];
    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: Content | Content[];
    components?: ReactHTML;
}) => (string | number | boolean | Iterable<ReactNode> | react_jsx_runtime.JSX.Element | null | undefined)[];

export { type Content, RichText };
