Before any municipal street or alley is improved under this section, the county commissioners and the proper corporate authorities of such municipality shall agree upon the maintenance of such municipal street or alley. Such agreement may provide that such municipal street or alley shall be kept and maintained in good repair by the municipality, in which case upon the completion of said road all further liability and responsibility of the county shall cease and determine, or it may provide that it shall be kept and maintained in good repair by the county, and the share of the municipality shall be paid annually to the county.
53 P.S. § 1836