import { ElementModP, ElementModQ } from "./group"; import { CiphertextElectionContextHandle } from "./wasm"; export declare class ElectionContext { _handle: CiphertextElectionContextHandle; constructor(handle: CiphertextElectionContextHandle); /** * @brief The number of guardians necessary to generate the public key */ get numberOfGuardians(): number; /** * The `quorum` of guardians necessary to decrypt an election. */ get quorum(): number; /** * The `joint public key (K)` in the [ElectionGuard Spec](https://github.com/microsoft/electionguard/wiki) */ get publicKey(): ElementModP; get publicKeyRef(): ElementModP; /** * The hash of the election metadata */ get manifestHash(): ElementModQ; /** * The `extended base hash code (𝑄')` in the [ElectionGuard Spec](https://github.com/microsoft/electionguard/wiki) */ get cryptoExtendedBaseHash(): ElementModQ; /** * @brief Creates a CiphertextElectionContext object from a [RFC-8259](https://www.rfc-editor.org/rfc/rfc8259.html#section-8.1) UTF-8 encoded JSON string */ static fromJson(json: string): Promise; }