Customs will notify the authorities that you have more than the amount designated, to guard against money laundering.
Example: http://ec.europa.eu/taxation_customs/customs/customs_control...
Example: http://ec.europa.eu/taxation_customs/customs/customs_control...
My point is, what's the purpose of declaring, if it is illegal to enter the country (or leave the country) with more than $10,000 - does declaring it make it legal?