You must declare ALL items purchased on the blue customs form. If you bought less than $400, I believe, you can walk through the green line.
There are exceptions which would require you to walk through the red line. These include buying more than $400, carrying more than $10,000, carrying illegal drugs, weapons, etc.