import type { InferType } from 'yup'; import type { Club, ClubInfo, Match, MemberCareerStats, MemberStats, OverallStats } from './models'; import type { ClubInfoInput, ClubSearchInput, MatchesStatsInput, MemberCareerStatsInput, MemberStatsInput, OverallStatsInput } from './schemas'; import { SCHEMAS } from './schemas'; declare class EAFCApiService { private readonly baseUrl; /** * Send a GET request to the EAFC API * * @param endpoint * @returns */ private get; /** * Search for a club by name * @param input * @returns */ searchClub: (input: InferType) => Promise; /** * Get the overall stats of the club * @param input * @returns */ overallStats: (input: InferType) => Promise; /** * Get the career stats of all members of the club * @param input * @returns */ memberCareerStats: (input: InferType) => Promise; /** * Get the career stats of all members of the club * @param input * @returns */ memberStats: (input: InferType) => Promise; /** * Get the stats of all matches of the club * @param input * @returns */ matchesStats: (input: InferType) => Promise; /** * Gets information of a club * Note that you need to index the response by the `clubId`, e.g. check `examples/clubInfo` * * @param input * @returns */ clubInfo: (input: InferType) => Promise; } export { EAFCApiService, SCHEMAS }; export type { Club, ClubInfo, ClubInfoInput, ClubSearchInput, Match, MatchesStatsInput, MemberCareerStats, MemberCareerStatsInput, MemberStats, MemberStatsInput, OverallStats, OverallStatsInput, };