import { CSSProperties, PropsWithChildren, ReactElement, ReactNode } from "react"; export type { CSSProperties }; export declare type Key = number | string; export declare type Attributes = Record; export declare type AttributesMap = Record; export declare type MapNodeFn = (node: Node, key?: Key, options?: RenderOptions) => Node | ReactNode; export declare type MapElementFn = (element: ReactElement) => ReactNode; export declare type MapComponentFn = (props: PropsWithChildren) => ReactNode; export declare type Components = Record; export declare type RenderOptions = { components?: Components; mapNode?: MapNodeFn; mapElement?: MapElementFn; attrsMap?: AttributesMap; }; export declare type ParseOptions = RenderOptions & { sanitize?: (html: string) => string; onError?: (error: unknown, html: unknown) => void; };