mirror of
https://github.com/sern-handler/website
synced 2026-06-27 18:22:22 +00:00
13 lines
486 B
TypeScript
13 lines
486 B
TypeScript
import type { ShikiConfig } from './types.js';
|
|
export interface ShikiHighlighter {
|
|
highlight(code: string, lang?: string, options?: {
|
|
inline?: boolean;
|
|
attributes?: Record<string, string>;
|
|
/**
|
|
* Raw `meta` information to be used by Shiki transformers
|
|
*/
|
|
meta?: string;
|
|
}): Promise<string>;
|
|
}
|
|
export declare function createShikiHighlighter({ langs, theme, themes, wrap, transformers, }?: ShikiConfig): Promise<ShikiHighlighter>;
|