FIT file declaration

Where can i get a copy of the FIT file declaration? I need it for developing a Converter to GPX.