13 lines
405 B
TypeScript
13 lines
405 B
TypeScript
|
import { type ComputedRef, type Ref } from 'vue';
|
||
|
import type { HLJSApi } from 'highlight.js';
|
||
|
interface UseHljsProps {
|
||
|
hljs?: unknown;
|
||
|
[key: string]: unknown;
|
||
|
}
|
||
|
export interface Hljs {
|
||
|
highlight: HLJSApi['highlight'];
|
||
|
getLanguage: HLJSApi['getLanguage'];
|
||
|
}
|
||
|
export default function useHljs(props: UseHljsProps, shouldHighlightRef?: Ref<boolean>): ComputedRef<Hljs | undefined>;
|
||
|
export {};
|