import { Activity, Event, EventId, Person, PersonalBest, RankingType, Result, Round } from '@wca/helpers'; /** * "Scores" People's results or PRs and sorts differently depending on roundNumber. * People's scores * @param {Event} event * @param {ActivityCode} roundId * @param {Result[]} roundResults * @returns */ export declare const byPROrResult: (event: Event, roundNumber: number) => (personA: Person, personB: Person) => number; /** * Comparator for array.sort * TODO: cleanup */ export declare const byPsychsheet: (eventId: EventId) => (a: Person, b: Person) => number; /** * Comparator for array.sort * Sorts people by their ranking in the round * @param {*} results * @returns */ export declare const byResult: (results: Result[]) => (a: Person, b: Person) => number; export declare const findPR: (personalBests: PersonalBest[], eventId: EventId, type: RankingType) => PersonalBest | undefined; /** * Returns people filtered by if they have an assignment for the activity + assignmentCode * @param wcif * @param assignmentCode * @param activity * @returns */ export declare const getPeopleInActivity: (persons: Person[], assignmentCode: string, activity: Activity) => Person[]; /** * @param {Person} person */ export declare const acceptedRegistration: (person: Person) => boolean; export declare const registeredForEvent: (eventId: EventId) => ({ registration }: Person) => boolean; export declare const shouldBeInRound: (round: Round) => (person: Person) => boolean; /** * Returns the people that should be in the round based on either registration counts * or the actual people in the round * @returns {[Person]} - List of persons that should be in the round */ export declare const personsShouldBeInRound: (round: Round, persons: Person[]) => Person[]; //# sourceMappingURL=persons.d.ts.map