2025-12-10 12:02:17 +08:00

13 lines
400 B
TypeScript

import type { HLJSApi } from 'highlight.js';
import type { ComputedRef, Ref } from 'vue';
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 {};