import type { Enum, Option, Struct, U8aFixed, Vec, bool, u128, u64 } from '@polkadot/types'; import type { ITuple } from '@polkadot/types/types'; import type { AccountId } from '@polkadot/types/interfaces/runtime'; /** @name Commitments */ export interface Commitments extends Vec> { } /** @name Reveals */ export interface Reveals extends Vec]>> { } /** @name TallyType */ export interface TallyType extends Enum { readonly isOnePerson: boolean; readonly isOneCoin: boolean; } /** @name VoteData */ export interface VoteData extends Struct { readonly initiator: AccountId; readonly stage: VoteStage; readonly vote_type: VoteType; readonly tally_type: TallyType; readonly is_commit_reveal: bool; } /** @name VoteOutcome */ export interface VoteOutcome extends U8aFixed { } /** @name VoteRecord */ export interface VoteRecord extends Struct { readonly id: u64; readonly commitments: Commitments; readonly reveals: Reveals; readonly data: VoteData; readonly outcomes: Vec; } /** @name VoteStage */ export interface VoteStage extends Enum { readonly isPreVoting: boolean; readonly isCommit: boolean; readonly isVoting: boolean; readonly isCompleted: boolean; } /** @name VoteType */ export interface VoteType extends Enum { readonly isBinary: boolean; readonly isMultiOption: boolean; readonly isRankedChoice: boolean; } /** @name VotingTally */ export interface VotingTally extends Option>> { } export declare type PHANTOM_VOTING = 'voting';