export interface Ballot { ranking: string[][] weight: number } export type Matrix = { candidates: string[] array: number[][] } export type ScoreObject = Record export enum VotingSystem { Approbation = 'APPROBATION', AbsoluteMajority = 'ABSOLUTE_MAJORITY', Baldwin = 'BALDWIN', Borda = 'BORDA', BottomTwoRunoff = 'BOTTOM_TWO_RUNOFF', Coombs = 'COOMBS', Copeland = 'COPELAND', FirstPastThePost = 'FIRST_PAST_THE_POST', Kemeny = 'KEMENY', InstantRunoff = 'INSTANT_RUNOFF', MajorityJudgment = 'MAJORITY_JUDGEMENT', MaximalLotteries = 'MAXIMAL_LOTTERIES', Minimax = 'MINIMAX', MinimaxTD = 'MINIMAX_TD', Nanson = 'NANSON', RandomizedCondorcet = 'RANDOMIZED_CONDORCET', RandomCandidates = 'RANDOM_CANDIDATES', RandomDictator = 'RANDOM_DICTATOR', RankedPairs = 'RANKED_PAIRS', Schulze = 'SCHULZE', Smith = 'SMITH', TwoRoundRunoff = 'TWO_ROUND_RUNOFF', }