Negotiations began , and in 1984 Prime Minister Margaret Thatcher signed the Sino-British Joint Declaration , in which Britain confirmed the transfer of the New Territories and all of Hong Kong to China in 1997 .
China decided not to accept Britain 's offer .