import { LineupApiData, Player } from './types'; import { Incident, IncidentApiData } from '../../types'; /** * Returns formation as a string based on the given lineup. * * @since v1.0.0 * @category Lineup Module * @param {number[]} lineUp - Array of players positions represented as numbers * @returns {string} * @example * findFormation([11, 32, 34, 36, 38, 72, 74, 76, 78, 104, 106]) //=> '4-4-2' */ export declare function findFormation(lineUp: number[]): string; /** * Gets the position of each player (number), and returns the array. * * @since v1.0.0 * @category Lineup Module * @param {Player[]} data - Array of players objects * @returns {number[]} */ export declare function getPositions(data?: Player[]): number[]; /** * Returns true if incident exists. * * @since v1.0.0 * @category Lineup Module * @param {Incident} incident - Incident object * @param {Incident[]} list - Array of Incident objects * @returns {boolean} */ export declare function incidentExists(incident: Incident, list: Incident[]): boolean; /** * Combines Incidents with the Lineup -> Players array. * * @since v1.0.0 * @category Lineup Module * @param {Player[]} playerList - Array of Player objects * @param {Incident[]} incidents - Array of Incident objects * @returns {Player[]} */ export declare function combineIncidents(playerList: Player[], incidents: Incident[]): Player[]; /** * Returns the Starting Eleven players for soccer. * * @since v1.0.0 * @category Lineup Module * @param {Incident[]} incidents - Array of Incident objects * @param {Player[]} data - Array of Player objects * @param {boolean} isAwayTeam - Is away * @returns {boolean} */ export declare function getStartingEleven(incidents: IncidentApiData, data: Player[], isAwayTeam?: boolean): Player[]; /** * Gets Player by Role. * * @since v1.0.0 * @category Lineup Module * @param {Player[]} data - Array of Players * @param {string} key - key * @param {string} role - role * @returns {Player[]} */ export declare function getByRole(data: Player[], key: string, role: string): Player[]; /** * Sorts Squads by Category. * * @since v1.0.0 * @category Lineup Module * @param {LineupApiData} data - Lineuo * @param {string} groupByKey - key * @returns {unknown} */ export declare function sortSquadByCategories(data: LineupApiData, groupByKey: string): unknown;