Islamabad - Pakistan's cricket star turned politician Imran Khan declared victory on Thursday for his party in the country's general elections, promising a "new" Pakistan following a vote that was marred by allegations of fraud and militant violence.
Khan, who aspires to be the country's next prime minister, said in a televised address to the nation that "thanks to God, we won and we were successful."
"If God wills, we will set an example," he added.
Pakistan's election commission has not yet released official, final results but Khan has maintained a commanding lead according to projections by many television stations, though it's unclear if his Tehreek-e-Insaf party, or PTI, would get a simple majority or have to form a coalition government.
Election officials said an official count confirming Pakistan's next government was expected later in the evening.
Khan's message of a "new" Pakistan resonated with young voters in a country where 64 percent of its 200 million people are below the age of 30, according to a United Nations report.
More than a dozen TV channels in Pakistan, based on official but partial counts, were projecting - using their own, undisclosed methodologies - that Khan's Pakistan Tehreek-e-Insaf party is getting as many as 119 seats of the 270 National Assembly seats that were contested.
The remainder in the 342-seat Lower House of Parliament includes reserved seats for women and minorities. Voting for two seats was postponed after one candidate died during the campaign and another was disqualified.
But before even half the votes were counted, Khan's leading rival Shahbaz Sharif, who heads the Pakistan Muslim League - the party of jailed ex-prime minister Nawaz Sharif - rejected the vote, generating fears that disgruntled losers could delay the formation of the next government. Television projections give his party hardly 61 seats.
In a tweet on his official page, Sharif said "our democratic process has been pushed back by decades," adding that "had the public mandate been delivered in a fair manner, we would have accepted it happily."
Complaints have also emerged from the independent Human Rights Commission, which issued a statement saying that in some places women were not allowed to vote.
In other areas, it said, "polling staff appeared to be biased toward a certain party," without naming the party. In the days before Wednesday's election, leading rights activist I.A. Rehman called the campaign "the dirtiest" in his country's troubled journey toward sustained democracy.
Analysts have expressed concern that disgruntled losers could create instability for the incoming new government, which will face mounting challenges - including a crumbling economy, a crippling debt and a raging militancy.
As voting got underway on Wednesday in the southwestern city of Quetta, the Baluchistan provincial capital, militants sent a suicide bomber to a crowding polling station to carry out a deadly attack that killed 31 people.
The election, in which Pakistanis voted for the National Assembly, the lower house of parliament, and the four provincial assemblies, marked only the second time in Pakistan's 71-year history that one civilian government has handed power to another in the country of 200 million people.
Yet there have been widespread concerns during the election campaign about manipulation by the military, which has directly or indirectly ruled Pakistan for most of its existence. The military had deployed 350 000 troops at the 85 000 polling stations.
In a tweet on his official account, Pakistan's military spokesperson General Asif Ghafoor called accusations of interference "malicious propaganda."
Baluchistan also saw the worst violence during campaigning earlier this month, when a suicide bomber struck at a political rally, killing 149 people, including the candidate Siraj Raisani. Another 400 were wounded. The Islamic State group claimed responsibility for that attack. Baluchistan has been roiled by relentless attacks, both by the province's secessionists and Sunni militants who have killed hundreds of Shiites there.
Throughout the night and into Thursday, Khan supporters celebrated outside party offices countrywide. Most of the revellers were young men, who danced to the sound of beating drums draped in Tehreek-e-Insaf party black and green-coloured flags.