import { type Ref } from 'vue'; import type { HighlightOptions, ShikiHighlighter } from './types.js'; /** * Lazy-load shiki instance. * * You can use this utility both in `server/` and vue app code. * * @example * ```vue * * ``` * * @example * ```ts * // server/api/highlight.ts * export default defineEventHandler(async (event) => { * const highlighter = await getShikiHighlighter() * return highlighter.highlight(`const hello = 'shiki'`, { lang: 'js' }) * }) * ``` */ export declare function getShikiHighlighter(): Promise; /** * Return a lazy highlighted code ref (only usable in Vue) * * @example * ```vue * * ``` */ export declare function useShikiHighlighted(code: string | undefined | Ref, options?: HighlightOptions & { highlighted?: string; }): Promise>; /** * Dynamically loading languages when options.dynamic is true. * * @example * ```vue * * ``` */ export declare function loadShikiLanguages(highlighter: ShikiHighlighter, ...langs: string[]): Promise;