import type { BundledLanguage } from "shiki"; export declare const SUPPORTED_LANGUAGES: readonly ["typescript", "javascript", "python", "php", "java", "go", "rust", "cpp", "c", "csharp", "ruby", "swift", "kotlin", "sql", "html", "css", "json", "yaml", "markdown", "bash", "shell"]; export type SupportedLanguage = (typeof SUPPORTED_LANGUAGES)[number]; /** * Detect language from file extension */ export declare function detectLanguageFromExtension(filename: string): BundledLanguage; /** * Highlight code with syntax highlighting * * @param code - Code to highlight * @param language - Programming language * @param theme - Color theme (default: 'dark-plus' to match VS Code) * @returns HTML string with syntax highlighting */ export declare function highlightCode(code: string, language?: BundledLanguage, theme?: "dark-plus" | "light-plus"): Promise; /** * Highlight a diff with syntax highlighting * Preserves +/- indicators while applying syntax highlighting * * @param diff - Unified diff string * @param language - Programming language * @param theme - Color theme * @returns HTML string with syntax highlighted diff */ export declare function highlightDiff(diff: string, language?: BundledLanguage, theme?: "dark-plus" | "light-plus"): Promise; /** * Check if a language is supported */ export declare function isLanguageSupported(language: string): language is BundledLanguage;