/** Maximum source size eligible for optional asynchronous Shiki enhancement. */ export declare const MAX_HL_CHARS = 32000; type CodeToAnsi = (code: string, lang: string, theme: string) => Promise; export type ShikiLoader = () => Promise; /** * Small, viewer-local async cache. The synchronous Pi highlighter remains the * first paint; Shiki is only requested by an expanded card that has metadata. */ export declare class ShikiHighlightCache { private readonly loader; private readonly cache; private readonly pending; constructor(loader?: ShikiLoader); get(code: string, lang: string | undefined, theme: string, fallback: readonly string[], invalidate?: () => void): string[] | undefined; clear(): void; } export declare const shikiHighlightCache: ShikiHighlightCache; export {}; //# sourceMappingURL=shiki-highlight.d.ts.map