export interface CodeToken { content: string; color?: string; fontStyle?: 'italic'; } /** Tokens for each line of `source`, at once when they are cached, otherwise * null now and `onReady` once the language has loaded. A language the * highlighter doesn't know reads as plain text. */ export declare function highlightCode(source: string, language: string, incomplete: boolean, onReady: (lines: CodeToken[][]) => void): CodeToken[][] | null;