Apple has reached a settlement on the damages owed in a case that concluded the company illegally conspired with publishers to drive up the prices of digital books.

Terms of the settlement weren't disclosed in a document filed late Monday. Those details will emerge in a filing due by July 16.

Lawyers representing consumers across the country had been seeking up to $840 million in damages. A trial on the damages claims had been scheduled to begin Aug. 25 in federal court in New York.

In another trial last year, U.S. District Judge Denise Cote ruled that Apple and the publishers colluded to boost electronic book prices from April 2010 to May 2012.

The damages settlement is contingent on Apple Inc. losing its appeal of Cote's decision.

The Motley Fool recommends Apple. The Motley Fool owns shares of Apple. Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.