UNPKG

histoire

Version:

A fast story book powered by Vite

13 lines • 775 B
import type { Context } from '../context.js'; /** Rejects work as soon as context teardown starts, before its disposers finish. */ export declare function assertMarkdownActive(ctx: Context): void; /** Obtains the exact context service without acquiring a syntax engine. */ export declare function getMarkdownHighlighter(ctx: Context): { /** Loads only known requested grammars; Shiki resolves embedded dependencies. */ prepare(languages: Iterable<string>): Promise<void>; /** Compatibility preparation for a user-supplied whole render method. */ prepareAll(): Promise<void>; /** Highlights synchronously after the caller completed asynchronous preparation. */ highlight(code: string, lang: string): string; }; //# sourceMappingURL=highlighter.d.ts.map