How do we add a new layout template in a custom or contrib module?

While we are at it, how about adding a layout to a theme?

Comments

Experimenting with this and found that simply adding the .json file a config directory in the module seems to work, I assume the same might be true for themes.