UNPKG

react-intlayer

Version:

Easily internationalize i18n your React applications with type-safe multilingual content management.

19 lines (18 loc) 719 B
import { ReactNode } from "react"; import { MarkdownRuntime } from "@intlayer/core/markdown"; //#region src/markdown/runtime.d.ts /** * React-specific runtime for the markdown processor. * Implements the MarkdownRuntime interface using React's primitives. */ declare const reactRuntime: MarkdownRuntime; /** * Creates a React runtime with custom createElement for advanced use cases. * Useful for wrapping elements or adding middleware. */ declare const createReactRuntime: (options?: { onCreateElement?: (type: string | any, props: Record<string, any> | null, children: any[]) => ReactNode; }) => MarkdownRuntime; //#endregion export { createReactRuntime, reactRuntime }; //# sourceMappingURL=runtime.d.ts.map