import { Rule } from "./Rule"; import { ValidationContext } from "../validation/ValidationContext"; import { SendVoteorder } from "../protocol/SendVoteorder"; /** * This rule limits maximal or minimal weight of single vote. * Negative values means flag, while positive means upvote. */ export declare class WeightRule extends Rule { rule: string; min: number; max: number; constructor(min: number, max: number); type(): Rule.Type; validate(voteorder: SendVoteorder, context: ValidationContext): Promise; validateRuleObject(unprototypedObj: any): void; getDescription(): string; private weightToPercent; }