import { ProviderError, type PlatformErrorCategory, type PlatformErrorSource, 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 | undefined;
    readonly code?: string | undefined;
    readonly category: PlatformErrorCategory;
    readonly source: PlatformErrorSource;
    readonly recoverable: boolean;
    readonly statusCode?: number | undefined;
    readonly provider?: string | undefined;
    readonly operation?: string | undefined;
    readonly phase?: string | undefined;
    readonly requestId?: string | undefined;
    readonly providerCode?: string | undefined;
    readonly providerType?: string | undefined;
    readonly retryAfterMs?: number | undefined;
}
export interface ErrorNormalizationOptions {
    readonly provider?: string | undefined;
    readonly fallbackMessage?: string | undefined;
    readonly source?: PlatformErrorSource | undefined;
}
export interface ProviderErrorNormalizationOptions extends ProviderErrorOptions {
    readonly fallbackMessage?: string | undefined;
}
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