import type { BundledLanguage, DecorationItem, Highlighter } from 'shiki';
export type ExtendedLanguage = BundledLanguage | 'txt';
export declare function normalizeLanguage(language?: string): Promise<ExtendedLanguage>;
export declare function getHighlighter(language?: string): Promise<Highlighter>;
export declare function codeToHtml({ code, language }: {
    code: string;
    language: string;
}): Promise<string>;
export declare function codeToThemedHtml({ code, language, theme, decorations, }: {
    code: string;
    language: string;
    theme?: 'light' | 'dark' | 'auto';
    decorations?: DecorationItem[];
}): Promise<string>;
export declare const isLanguageLoaded: (language: ExtendedLanguage) => boolean;
