import type { Plugin } from "unified";
import type { Root } from "hast";
import { D2Options } from "./d2.js";
export type RehypeD2Config = {
    d2Options?: Omit<D2Options, "themeID"> & {
        theme?: string;
        darkTheme?: string;
    };
};
export declare const rehypeD2: Plugin<[((RehypeD2Config & import("@beoe/rehype-code-hook-img").BasePluginOptions) | undefined)?], Root>;
export default rehypeD2;
