The process of sharing a layout is very similar to including it in a modpack, so just check the Modpacks page for more information.
Instead of moving the config files to a modpack, you "move" it to the other Minecraft instance of your friend, etc.
Just send your friend the config folder as ZIP and let them do the steps to copy the folder to their instance.