fumadocs-core
Version:
The React.js library for building a documentation website
14 lines (12 loc) • 518 B
TypeScript
import { t as HighlightOptions } from "../shiki-CIBQys54.js";
import { DependencyList, ReactNode } from "react";
//#region src/highlight/client.d.ts
/**
* 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.
*/
declare function useShiki(code: string, options: HighlightOptions, deps?: DependencyList): ReactNode;
//#endregion
export { useShiki };
//# sourceMappingURL=client.d.ts.map