@mui/internal-docs-infra
Version:
MUI Infra - internal documentation creation tools.
20 lines • 902 B
text/typescript
import type * as React from 'react';
import type { Nodes as HastNodes } from 'hast';
import type { Components } from 'hast-util-to-jsx-runtime';
import { type FallbackNode } from "./fallbackFormat.mjs";
export declare function hastToJsx(hast: HastNodes, components?: Partial<Components>): React.ReactNode;
export declare function hastOrJsonToJsx(hastOrJson: HastNodes | {
hastJson: string;
} | {
hastCompressed: string;
}, components?: Partial<Components>, fallback?: FallbackNode[]): React.ReactNode;
export declare function stringOrHastToString(source: string | HastNodes | {
hastJson: string;
} | {
hastCompressed: string;
}, fallback?: FallbackNode[]): string;
export declare function stringOrHastToJsx(source: string | HastNodes | {
hastJson: string;
} | {
hastCompressed: string;
}, highlighted?: boolean, components?: Partial<Components>, fallback?: FallbackNode[]): React.ReactNode;