13 lines
405 B
TypeScript
Raw Permalink Normal View History

2025-02-28 19:43:11 +08:00
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 {};