import type { HAST, MDAST } from '@stoplight/markdown'; import type { HeadingProps, LinkHeadingProps, LinkProps } from '@stoplight/mosaic'; import type { ErrorBoundaryProps } from '@stoplight/react-error-boundary'; import type { FunctionComponent, HTMLAttributes, ImgHTMLAttributes } from 'react'; import type { ParseOptions } from './utils'; export interface IMarkdownViewer extends IMarkdownViewerProps, ErrorBoundaryProps { } export interface IMarkdownViewerProps extends Omit, 'onError'> { markdown: string | MDAST.Root; className?: string; parseOptions?: ParseOptions; includeToc?: boolean; tocMaxDepth?: 1 | 2 | 3 | 4; tocBasePath?: string; } export declare type DefaultComponentMapping = { a: FunctionComponent>; h1: FunctionComponent>; h2: FunctionComponent>; h3: FunctionComponent>; h4: FunctionComponent>; h5: FunctionComponent>; h6: FunctionComponent>; blockquote: FunctionComponent; code: FunctionComponent & HAST.CodeProperties>; img: FunctionComponent & HAST.ImageProperties>; tabs: FunctionComponent; tab: FunctionComponent; codegroup: FunctionComponent; }; export declare type CustomComponentMapping> = Partial> & M; declare type ReactComponents = { [V in keyof Omit]: FunctionComponent; }; export declare type CustomComponents = { [key: string]: FunctionComponent; }; export {};