/// import * as moment from 'moment'; import { Entity, RawEntity } from '../core/models'; import Moment = moment.Moment; import { User } from '../user/user.model'; export interface Vote extends Entity { value: number; posted: Moment; userDistrict: null | { id: string; name: string; }; } export declare type DenormalizedVote = Vote & { author: User; }; export declare type RawVote = RawEntity & { [P in 'value' | 'userDistrict']: Vote[P]; } & { posted: string; }; export declare function parseVote(data: RawVote): Vote; export declare function votesEqual(x: Vote, y: Vote): boolean; export declare function mergeVotes(prev: Vote, next: Vote): Vote;