import { AltEditorLiteError } from './alt-editor-lite-error.js'; import type { AltEditorLiteLanguage } from './alt-editor-lite-language.js'; /** Signal used when normalization is not associated with cancellable work. */ export declare const NEVER_ABORTED_SIGNAL: AbortSignal; /** Preserves thrown errors and wraps other rejection values without coercion. */ export declare function normalizeRejectedReason(error: unknown): Error; /** * Internal cancellation marker that must never be displayed or published. */ export declare class InternalOperationAbort extends Error { /** Stable internal discriminator. */ readonly type = "operation-abort"; constructor(); } /** * Normalizes callback failures without exposing arbitrary values to the UI. * * @param rawError - Value thrown or rejected by consumer code. * @param signal - Signal owned by the current operation. * @param language - Resolved safe fallback text. * @returns A public safe error or an internal cancellation marker. */ export declare function normalizeOperationError(rawError: unknown, signal: AbortSignal, language: Readonly): AltEditorLiteError | InternalOperationAbort;