The private equity owners of North American Breweries (NAB) have agreed a deal to sell the company to Heineken-affiliated Cerveceria Costa Rica for US$388m in cash.