Republican Brian Kemp resigned Thursday as Georgia’s secretary of state, a day after his campaign said he’s captured enough votes to become governor, even though his election rival is conceding nothing in one of the nation’s marquee midterm races.

As the state’s top election official, Kemp oversaw the race, and his resignation Thursday morning came as a hearing began for a lawsuit in which five voters asked that he be barred from exercising his duties in any future management of his own election tally. Democratic rival Stacey Abrams’ campaign had repeatedly accused Kemp of improperly using his post as secretary of state.

Kemp’s resignation takes effect just before noon Thursday.

Abrams has pointed to ballots that have yet to be counted and says there’s still the possibility of a December runoff. Her campaign has said she must pick up about 15,000 votes to do so.

Kemp said Abrams is using “old math.” Without providing specifics, he said in a WSB radio interview that the number “is actually more like 30,000 votes.”

The Associated Press has not called the election.

At a news conference with outgoing Republican Gov. Nathan Deal late Thursday morning, Kemp declared that there are only about 20,000 provisional ballots that have not yet been counted in the race. He did not offer any details, but in response to a question said he would ask about releasing county-by-county results.

Of Abrams, he said, “Even if she got 100% of those votes, we still win.”

Late Wednesday afternoon — after a day of the campaigns, media and partisan observers scrambling for information about outstanding votes across Georgia’s 159 counties — Kemp aide Ryan Mahoney told reporters on a conference call, “We are declaring victory.” Campaign official Austin Chambers added: “The message here is pretty simple: This election is over, and the results are clear.”

Abrams’ campaign manager Lauren Groh-Wargo retorted a few hours later that the Kemp campaign offered “no proof” other than nonspecific provisional ballot counts released by Kemp’s secretary of state office.

“He’s offered ... no indication of why we should take him at his word,” Groh-Wargo said. “The sitting secretary of state has declared himself” the winner.

The standoff leaves open the possibility of litigation as Abrams’ campaign has pushed for the continued counting of absentee, mail-in and provisional ballots, and renewed its concerns that Kemp was the chief elections officer supervising his own election, a race already marked by disputes over the voting process.

If a runoff is necessary, the second round would take place Dec. 4, extending Abrams’ bid to become the first black woman elected governor in U.S. history while Kemp looks to maintain the GOP’s dominance in a state where Democrats haven’t won a governor’s race since 1998.

Partisan observers nationally have watched intently for clues about just how much of a battleground Georgia can be in the 2020 presidential campaign.

With reported votes exceeding 3.9 million — almost 95% of Georgia’s 2016 presidential turnout — Kemp has just more than 50%.

Before the Kemp campaign declared victory Wednesday, Groh-Wargo estimated that about 15,000 votes separate Kemp from a runoff. She says at least that many outstanding absentee and mail-in ballots remained to be counted.

Kemp’s spokeswoman in the secretary of state’s office, Candice Broce, said that by Wednesday afternoon the number of uncounted absentee and mail-in ballots was less than 2,000 — with her boss still above the 50% threshold.

Broce said about 22,000 provisional ballots have yet to be processed, according to a canvass of county officials across the state. Mahoney said those numbers make it impossible for Abrams to pick up enough votes to deny Kemp an outright victory.

In 2016, with a slightly larger electorate, there were 16,739 provisional ballots. Of those, 7,592 were counted. State and campaign officials said they expected a much higher proportion to be counted this year.

Kemp’s office has not released a county-by-county breakdown of provisional ballots, but Abrams’ campaign said they believe they are concentrated in metro Atlanta counties where Abrams won a large share of the vote. Broce said Kemp’s office is working on releasing more detailed information.

The lawsuit at issue Thursday morning in an Atlanta federal court came from voters who sued Kemp on election day alleging that Kemp presiding over an election in which he is a candidate “violates a basic notion of fairness.” The plaintiffs asked the court to block Kemp from having anything more to do with managing his election. The hearing ended shortly after it began with the announcement of Kemp’s resignation.

It’s not immediately clear what Kemp’s practical role was in the election tally. Local officials are responsible for counting the votes, including provisional ballots. County officials have until Tuesday to certify their results and send them to Kemp’s office. Statewide certification must come by Nov. 20.