/**
 * Strips SDK-internal metadata from an error before it enters the interceptor
 * chain. Interceptors see a plain Error — no CommandError.
 */
export declare function sanitizeError(e: unknown): Error;
/**
 * Restores SDK-internal metadata after the interceptor chain exits, using the
 * original error's metadata and the interceptor's error as the new cause.
 * If the original had no SDK metadata, the interceptor's error passes through
 * unchanged.
 */
export declare function restoreError(interceptorError: unknown, original: unknown): unknown;
//# sourceMappingURL=error_sanitization.d.ts.map