import type { AltEditorLiteError } from './alt-editor-lite-error.js'; import type { AltEditorLiteLanguage } from './alt-editor-lite-language.js'; import type { AfterSuccessContext, EditorErrorHookContext, EditorHooks } from './alt-editor-lite-options.js'; import type { AltEditorLite } from './alt-editor-lite.js'; /** Publishes normalized operation failures through the configured observers. */ export declare class EditorErrorReporter { private readonly editor; private readonly eventTarget; private readonly language; private readonly hooks; private readonly isDestroyed; constructor(editor: AltEditorLite, eventTarget: EventTarget, language: Readonly, hooks: Readonly> | undefined, isDestroyed: () => boolean); /** Reports one failure without allowing observer failures to recurse. */ report(error: AltEditorLiteError, context: EditorErrorHookContext, publishEvent: boolean): void; /** Runs the optional success observer after the canonical commit. */ runAfterSuccess(context: AfterSuccessContext): Promise; private operationContext; }