import { RdiUiError } from './RdiUiError'; export interface ServerErrorItem { message?: string; code?: string; remediation?: string; details?: { connection_type?: string; source?: string; job?: string; target?: string; code?: string; description?: string; status?: string; error?: string; }; } /** * Normalizes any error from a cloud API call or RDI SDK call into a * predictable `RdiUiError` shape, independent of the HTTP client used. * * Never throws. */ export declare const normalizeRdiUiError: (error: unknown) => RdiUiError; /** * Builds an `RdiUiError` from a *subset* of a server error body's `errors[]`. * * For callers that must drop some of the server's entries before display (the * source step hides CDC failures belonging to other sources) and still need the * exact detail shape `normalizeRdiUiError` produces for an untouched body. * `message` is carried over from the normalized error so the panel's summary * line is unchanged by the filtering. */ export declare const rdiUiErrorFromServerErrors: (items: ServerErrorItem[], { message, cause }: { message: string; cause?: unknown; }) => RdiUiError;