Let's take a look at how you would create an outline rule for beds.
A bed has the parts foot and head. Both parts face the same direction. So, for the foot we need to look where it's facing, and for the head in the opposite direction.
Because we use tags in blocks, beds from other mods would automatically work too, provided that the mod developer has added their beds to the tag.
Chests
If a chest is large, it has the types left and right. Both blocks face in the same direction. If a left chest faces north, the right chest would be to the east, so rotating clockwise once. The Ender Chest is included in the tag but does not have a double variant, so we should exclude it.