"As I know that Yahweh of hosts lives, before whom I stand, surely." Here Elisha compares the certainty that Yahweh is alive to the certainty that, if it were not for Jehoshaphat being there, he would not pay attention to Joram. This is a way of making a solemn promise. Alternate translation: "As surely as Yahweh of hosts lives, before whom I stand, I promise you, if it" (See: [[rc://en/ta/man/translate/figs-simile]])
This can be written in positive form. Alternate translation: "I pay attention to you only because I honor the presence of Jehoshaphat king of Judah" (See: [[rc://en/ta/man/translate/figs-doublenegatives]])
These two phrases have similar meaning and are used together to emphasize that he would not pay any attention to Joram. Alternate translation: "I would not have anything at all to do with you" (See: [[rc://en/ta/man/translate/figs-parallelism]])