I've gotten the feeling they interact with each other the same way we can interact with them. Seen two civs declare war on the same target at the same time, seemingly indicating they had a secrecy pact. However, haven't declared war on a civ only to have a different civ declare war against me, implying a defensive pact.