Protest leaders reach 'full agreement' with military on a hard-won constitutional declaration, says AU envoy.