protein that mediates a cell's response to changes in its environment as part of a two-component regulatory system