import { ProviderError, type ErrorCategory, type ErrorSource, type ProviderErrorOptions } from '../types/errors.js';
import type { StructuredDaemonErrorBody } from '../types/daemon-error-contract.js';
export interface NormalizedError {
    readonly name: string;
    readonly message: string;
    readonly summary: string;
    readonly hint?: string;
    readonly code?: string;
    readonly category: ErrorCategory;
    readonly source: ErrorSource;
    readonly recoverable: boolean;
    readonly statusCode?: number;
    readonly provider?: string;
    readonly operation?: string;
    readonly phase?: string;
    readonly requestId?: string;
    readonly providerCode?: string;
    readonly providerType?: string;
    readonly retryAfterMs?: number;
}
export interface ErrorNormalizationOptions {
    readonly provider?: string;
    readonly fallbackMessage?: string;
    readonly source?: ErrorSource;
}
export interface ProviderErrorNormalizationOptions extends ProviderErrorOptions {
    readonly fallbackMessage?: string;
}
export declare function normalizeError(error: unknown, options?: ErrorNormalizationOptions): NormalizedError;
export declare function summarizeError(error: unknown, options?: ErrorNormalizationOptions): string;
export declare function formatError(error: unknown, options?: ErrorNormalizationOptions): string;
export declare function buildErrorResponseBody(error: unknown, options?: ErrorNormalizationOptions): StructuredDaemonErrorBody;
export declare function toProviderError(error: unknown, options?: ProviderErrorNormalizationOptions): ProviderError;
export declare function formatProviderError(error: ProviderError, provider?: string): string;
//# sourceMappingURL=error-display.d.ts.map