///
import { EventEmitter } from 'events';
import { Editor } from "../../interface";
export * from "../../../../commons/languages";
declare class CodeWorker {
events: EventEmitter;
worker: Worker | null;
initWorker(editor: Editor): void;
handleMessage: (event: any) => void;
highlightCodeBlock(editor: Editor, editorId: string, blockId: string, language: string, code: string): Promise;
on(event: 'highlight', callback: (editorId: string, blockId: string, html: string) => void): void;
}
declare const codeWorker: CodeWorker;
export default codeWorker;