UNPKG

svelte-exmarkdown

Version:

Svelte component to render markdown. Dynamic and Extensible.

11 lines (10 loc) 463 B
import type { ComponentsMap, HastNode } from './types'; type Ref<T> = { current: T; }; export declare const ref: <T>(value: T) => Ref<T>; export declare const getComponentsMap: () => Readonly<Ref<ComponentsMap>>; export declare const setComponentsContext: (value: Ref<ComponentsMap>) => Ref<ComponentsMap>; export declare const getAstNode: () => Readonly<Ref<HastNode>>; export declare const setAstContext: (value: Ref<HastNode>) => Ref<HastNode>; export {};