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; } /** * redactedErrorMessage, extracts and redacts a human-readable message from any thrown value. * * Use for user-facing error output where the raw message should never leak * bearer tokens, API keys, or other sensitive data. Do NOT use for logger * fields, structured result/error fields, or diagnostic context, use * `summarizeError` or the structured `normalizeError` for those. */ export declare function redactedErrorMessage(error: unknown): 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