UNPKG

fumadocs-core

Version:

The React.js library for building a documentation website

8 lines • 416 B
import { r as HighlightOptions } from "../index-BhAz6nyI.js"; import { DependencyList, ReactNode } from "react"; /** * get highlighted results, should be used with React Suspense API. * * note: results are cached with (lang, code) as keys, if this is not the desired behaviour, pass a `deps` instead. */ export declare function useShiki(code: string, options: HighlightOptions, deps?: DependencyList): ReactNode;