import * as dntShim from "./_dnt.shims.js"; type Options = { tab: string; indentOn: RegExp; moveToNewLine: RegExp; spellcheck: boolean; catchTab: boolean; preserveIdent: boolean; addClosing: boolean; history: boolean; readOnly?: boolean; window: typeof dntShim.dntGlobalThis; autoclose: { open: string; close: string; }; }; type HistoryRecord = { html: string; pos: Position; }; export type Position = { start: number; end: number; dir?: '->' | '<-'; }; export declare class CodeJar extends EventTarget { private editor; private highlight; options: Options; listeners: [string, any][]; history: HistoryRecord[]; at: number; onUpdateCbk: (code: string) => void | undefined; focus: boolean; prev: string | undefined; constructor(editor: HTMLElement, highlight: (e: HTMLElement, pos?: Position) => void, opt?: Partial); getSelection(): Selection; private doHighlight; private uneditable; toString(): any; updateOptions(newOptions: Partial): void; updateCode(code: string, callOnUpdate?: boolean): void; onUpdate(callback: (code: string) => void): void; save(): Position | undefined; restore(pos?: Position): void; recordHistory(): void; destroy(): void; } export {}; //# sourceMappingURL=CodeJar.d.ts.map