/**
* Highlights source code as HTML using the editor's CodeMirror languages and its Prism-style token classes, so the
* result is styled by the same `wy-code` theme as the server-rendered code preview.
* Everything is loaded on first use since it pulls in the editor chunk.
*
* @param text - Source code.
* @param filename - File name used to pick the language from its extension.
* @returns The highlighted HTML (without a wrapping `pre`), or `undefined` when no language matches the file name.
*/
export declare function highlightCodeAsHtml(text: string, filename: string): Promise;
//# sourceMappingURL=code-highlight.d.ts.map