¶ 1. Dr. Kent and Mary Schaefer (the Schaefers) appeal from a summary judgment dismissing their claims against the City of Hartford (City) for lack of standing. The Schaefers argue that they have a legally protectible interest in the rezoning of adjoining property that impairs the quality of residential life and in protecting the Town of Hartford's (Town) right to *863 test the validity of the City's annexation proceedings. We conclude that the Schaefers lack standing to bring this aсtion.
¶ 2. The Town also appeals from an order dismissing its action against the City for failure to comply with notice of claim requirements. We conclude that the Town's subsequent litigation has rendered this issue moot. We therefоre affirm the judgment and the order of the circuit court.
FACTS
¶ 3. On December 4, 2000, the City adopted an ordinance annexing 67.7 acres from the Town. The ordinance was the result of a petition for direct annexation by Rubicon Assоciates, LLC, which proposed high-density residential and multi-family residential development for the area. No electors reside in the annexation area. The ordinance rezoned the annexation area for residential use. The Schaefers own 75.4 acres of land in the Town that abut the entire length of the northern border of the annexation area.
¶ 4. Prior to the adoption of the ordinance, on November 23,1999, the City and thе Town entered into an intergovernmental agreement (Agreement). The Agreement provided, in relevant part:
The Town will not challenge any annexation that is in accordance with the terms of this Agreement. Nor will the Tоwn judicially oppose any annexations that are consistent with the terms of this Agreement. The Town also agrees not to foster any private challenges to any annexations that are consistent with the terms of this Agreement, nor financially support anyone who opposes or contests any such annexation. If the Town is impleded [sic] in an annexation lawsuit by a party other than the City, the Town will immediately stipulate that *864 it does not oppose the contested annexation. The Town will also cooperate with the City on the dismissal of the Town as a party to the relevant lawsuit.
The Agreement runs from January 1, 2000, through December 31, 2020.
¶ 5. This declaratоry judgment action was filed by the Schaefers and the Village of Slinger against the City and the Town on February 23, 2001; the Schaefers and the Village sought judgment declaring both the City annexation ordinance and the Agreement void. The Town thеn cross-claimed against the City, asking the circuit court to declare the Agreement void.
¶ 6. The City and the Schaefers filed cross-motions for summary judgment. On October 17, 2001, the circuit court granted the City summary judgment against the Schaefers and dismissed the claim for lack of standing. The circuit court also dismissed the Village's claim against the City challenging the Agreement but allowed its challenge of the annexation ordinance under the "Rule of Reason." 1 Additionаlly, the circuit court dismissed without prejudice the Town's cross-claim against the City for the Town's failure to comply with the notice of claim requirements of Wis. Stat. § 893.80 (1999-2000). 2
DISCUSSION
¶ 7. The Schaefers argue that the circuit court erroneously dismissеd this action for lack of standing. The Schaefers claim they have a legally protectible interest in the rezoning of adjoining property that *865 impairs the quality of residential life. The Schaefers also argue that thеy have a legally protectible interest in asserting and protecting the Town's right to test the validity of the City's annexation proceedings.
¶ 8. Whether a party has standing to seek declaratory relief is a question of law wе review de novo.
Town of Eagle v. Christensen,
¶ 9. In order to maintain a deсlaratory judgment action under Wis. Stat. § 806.04, a justiciable controversy must exist, that is:
(1)A controversy in which a claim of right is asserted against one who has an interest in contesting it.
(2) The controversy must be between persons whose interests are adverse.
(3) The party seeking declaratory relief must have a legal interest in the controversy — that is to say, a legally protectible interest.
(4) The issue involved in the controversy must be ripe for judicial detеrmination.
City of Madison v. Town of Fitchburg,
¶ 10. A taxpayer does not have standing to challenge an ordinance merely because he оr she disagrees with the legislative body.
Id. A
declaratory judgment will not determine hypothetical or future rights.
City of Janesville v. Rock County,
¶ 11. It has been held that a taxpayer can invoke equity to enforce the right of a public corporation where there is a danger of substantial injury that will affect the taxpayer to some extent.
Vill. of Brown Deer v. City of Milwaukee,
¶ 12. Nowhere in the complaint do the Schaefers allege that they have sustained or will sustain some pecuniary loss because of the annexation or that the annexation poses a substantial injury to their interests. *867 There is nothing in the record upon which to base an inference that the Schaefers would be adversely affected by the annexation. The law requires at least an allegation of pecuniary loss or injury. Id. at 360. The Schaefers have alleged neither.
¶ 13. When the legislature created the annexation statute of Wis. Stat. § 66.0233,
3
it chose only to establish a town's right to challenge an annexation ordinance, not to extend that same right to adjoining property owners. Prior to the enactment of the annexation statute in 1933, neither a town in which the annexed territory was located, nor its citizens, other than those t residing or owning property within the limits of the territory being annexed, had a legal interest in the annexation.
Town of Madison v. City of Madison,
In a proceeding in which territory may be attached to or detached from a town, the town is an interested party, and the town board may institute, maintain or defend an action brought to test the validity of the proceedings, and may intervene or be impleaded in the action.
*868
¶ 14. The legislature is presumed to know the status of existing law,
State v.
Frankwick,
¶ 15. Statutes authorizing attack upon annexations by private persons are usually interpreted as to préclude attack on annexations by pеrsons having only remote interests; consequently, persons not residing in the area being annexed are generally denied standing to protest the annexation. 1 Chester James Antieau, Municipal Corporation Law § 1A.31 (1996).
¶ 16. From the tenor of the record as a whole, the heart of the Schaefers' argument is that the proposed development within the annexation territory may affect the value and use of their property. In essence, the Schaefers' complaint is with the development, not the annexation, of their neighbor's property.
¶ 17. While adjoining landowners are affected by a neighbor's land use, land use is in no way dependent upon annexation. The Schaefers assert that they have an interest in protecting their estate from the development of adjoining property that would diminish the value of that estate, the quality of their life and the community in which it is situаted. The Schaefers have not cited any authority that allows a neighbor to oppose the development of adjoining property simply because it will affect property values. As the circuit court nоted, *869 the Schaefers can advance this argument in a public zoning hearing but they have no rights in the adjoining property that are affected by the annexation itself.
¶ 18. Nor do the Schaefers have any standing whatsoever with respect to the Agreement. The Agreement between the City and the Town is a matter dealt with in contract law. The general rule in contract law is that only a party to a contract may enforce or chаllenge it.
See Sussex Tool & Supply, Inc. v. Mainline Sewer and Water, Inc.,
¶ 19. The Town arguеs that the circuit court erroneously dismissed its action for lack of compliance with notice of claim requirements; the Town claims that the notice of claim provisions of Wis. Stat. § 893.80 do not apply to this actiоn. We conclude that this issue has been mooted by subsequent litigation and we need not address it.
¶ 20. After the Town's cross-claim was dismissed by the circuit court in this action, the Town filed its notice of claim and then filed a separate lawsuit against the City. In this subsequent lawsuit, the Town challenged the validity of the Agreement. Ultimately the circuit court in that action agreed with the Town and declared the Agreement void as a matter of law.
¶ 21. We have examined thе cross-claim filed by the Town in this action to determine whether this subsequent litigation has rendered this appellate issue moot. We conclude that the cross-claim is targeted *870 exclusively and entirely at the Agreement аnd makes no allegations concerning the legality or validity of the annexation. The subsequent litigation declaring the Agreement void has mooted this issue.
CONCLUSION
¶ 22. The Schaefers lack standing to bring this declaratory judgment action because they have not alleged that the annexation will cause them injury or pecuniary loss. In addition, the Town's subsequent litigation has rendered its appellate issue moot. We therefore affirm the judgment and the ordеr of the circuit court.
By the Court. — Judgment and order affirmed.
Notes
The Village did not appeal the dismissal of its challenge to the Agreement and is therefore not a party to this appeal.
All references to the Wisconsin Statutes are to the 1999-2000 version unless otherwise noted.
WISCONSIN Stat. § 66.0233, previously Wis. Stat. § 66.029 (1997-98), states:
