type Loader = () => Promise; export interface CodeHighlightingOptions { /** Turn highlighting on/off globally. When false, code renders as plain text. */ enabled?: boolean; /** Register/override language loaders, e.g. `{ ruby: () => import('@shikijs/langs/ruby') }`. */ languages?: Record; /** Register/override theme loaders. */ themes?: Record; /** Map short names to canonical language keys, e.g. `{ vue: 'html' }`. */ aliases?: Record; } /** * Highlight `code` as `lang` with `theme`, returning HTML. Loads only what's * needed, on demand. Falls back to escaped plain `
` when highlighting
 * is disabled, the language has no registered loader, or anything fails.
 */
export declare function highlight(code: string, lang: string, theme: string): Promise;
/** Register additional languages/themes/aliases, or disable highlighting entirely. */
export declare function configureCodeHighlighting(options: CodeHighlightingOptions): void;
export declare function isCodeHighlightingEnabled(): boolean;
/** Test helper — reset the singleton and registries to defaults. */
export declare function __resetCodeHighlightingForTests(): void;
export {};