/** Resolve a shiki language id from a file path, or undefined if unsupported. */ export declare function languageFromPath(filePath: string | undefined): string | undefined; /** Configure highlighting without loading Shiki until the first code preview needs it. */ export declare function configureHighlighting(theme: string, syntaxEnabled?: boolean): void; /** Initialize (or reinitialize) the shared shiki highlighter. Fire-and-forget safe. */ export declare function initHighlighting(theme: string, syntaxEnabled?: boolean): Promise; /** * Highlight `text` as `lang`, returning per-line truecolor ANSI strings that match * pi-code-previews' rendering (same shiki theme + token conversion). Returns null * when highlighting is disabled, the language is unsupported, the highlighter is * not yet ready, or the content is too large. Pass `invalidate` to request a * re-render once the highlighter/language becomes ready. */ export declare function highlightCode(text: string, lang: string, invalidate?: () => void): string[] | null; //# sourceMappingURL=highlight.d.ts.map