import { AxiosRequestConfig } from 'axios'; import { IRacingAPIClientConfig } from './types'; import { GetCarsParams, GetCarAssetsParams, GetCarClassesParams, GetDivisionsParams, GetEventTypesParams, GetCategoriesParams, GetLeagueParams, GetLeagueSeasonParams, GetLeagueLicenseGroupParams, GetLeagueSeasonStandingsParams, GetLeaguePointsSystemParams, GetLeagueMembershipParams, GetLeagueSessionParams, GetLookupParams, GetLicensesParams, GetMembersParams, GetMemberInfoParams, GetMemberProfileParams, GetMemberAwardsParams, GetResultsParams, GetResultsEventLogParams, GetResultsLapChartDataParams, GetResultsLapDataParams, SearchHostedParams, SearchSeriesParams, GetSeasonListParams, GetSeasonRaceGuideParams, GetSeasonResultsParams, GetSpectatorSubsessionIdsParams, GetSeriesAssetsParams, GetSeriesDataParams, GetSeriesPastSeasonsParams, GetSeriesSeasonsParams, GetSeriesStatsParams, GetMemberBestsParams, GetMemberCareerParams, GetMemberDivisionParams, GetMemberRecentRacesParams, GetMemberSummaryParams, GetMemberYearlyParams, GetSeasonDriverStandingsParams, GetSeasonQualifyResultsParams, GetSeasonSupersessionStandingsParams, GetSeasonTeamStandingsParams, GetSeasonTimeTrialResultsParams, GetSeasonTimeTrialStandingsParams, GetWorldRecordsParams, GetTrackAssetsParams, GetTracksParams, GetCarsResponse, GetCarAssetsResponse, GetCarClassesResponse, GetDivisionsResponse, GetEventTypesResponse, GetCategoriesResponse, GetLeagueResponse, GetLeagueSeasonResponse, GetLeagueSeasonStandingsResponse, GetLeaguePointsSystemResponse, GetLookupResponse, GetLicensesResponse, GetMembersResponse, GetMemberInfoResponse, GetResultsResponse, GetResultsEventLogResponse, GetResultsLapChartDataResponse, GetResultsLapDataResponse, SearchResponse, GetSeasonListResponse, GetSeasonRaceGuideResponse, GetSeasonResultsResponse, GetSpectatorSubsessionIdsResponse, GetSeriesAssetsResponse, GetSeriesDataResponse, GetSeriesPastSeasonsResponse, GetSeriesSeasonsResponse, GetSeriesStatsResponse, GetMemberBestsResponse, GetMemberCareerResponse, GetMemberDivisionResponse, GetMemberRecentRacesResponse, GetMemberSummaryResponse, GetMemberYearlyResponse, GetSeasonDriverStandingsResponse, GetSeasonQualifyResultsResponse, GetSeasonSupersessionStandingsResponse, GetSeasonTeamStandingsResponse, GetSeasonTimeTrialResultsResponse, GetSeasonTimeTrialStandingsResponse, GetWorldRecordsResponse, GetTrackAssetsResponse, GetTracksResponse } from './types'; import { TokenManager } from './auth/token-manager'; import { PasswordLimitedGrantAuth } from './auth/password-limited-grant'; import { AuthorizationCodeFlowAuth } from './auth/authorization-code-flow'; export declare class IRacingAPIClient { private httpClient; private authHttpClient; private tokenManager; private passwordGrantAuth?; private authCodeFlowAuth?; private authType; constructor(config: IRacingAPIClientConfig); /** * Get access token based on auth type */ private getAccessToken; /** * For Authorization Code Flow: Generate authorization URL */ generateAuthorizationUrl(state: string): { authorizationUrl: string; codeVerifier?: string; }; /** * For Authorization Code Flow: Handle OAuth callback */ handleAuthorizationCallback(code: string, codeVerifier?: string): Promise; /** * Get all cars */ getCars(params?: GetCarsParams): Promise; /** * Get car assets */ getCarAssets(params?: GetCarAssetsParams): Promise; /** * Get all car classes */ getCarClasses(params?: GetCarClassesParams): Promise; /** * Get divisions */ getDivisions(params?: GetDivisionsParams): Promise; /** * Get event types */ getEventTypes(params?: GetEventTypesParams): Promise; /** * Get categories */ getCategories(params?: GetCategoriesParams): Promise; /** * Get league information */ getLeague(params: GetLeagueParams): Promise; /** * Get league season */ getLeagueSeason(params: GetLeagueSeasonParams): Promise; /** * Get league license group */ getLeagueLicenseGroup(params: GetLeagueLicenseGroupParams): Promise; /** * Get league season standings */ getLeagueSeasonStandings(params: GetLeagueSeasonStandingsParams): Promise; /** * Get league points system */ getLeaguePointsSystem(params: GetLeaguePointsSystemParams): Promise; /** * Get league membership */ getLeagueMembership(params: GetLeagueMembershipParams): Promise; /** * Get league session */ getLeagueSession(params: GetLeagueSessionParams): Promise; /** * Get lookup data */ getLookup(params?: GetLookupParams): Promise; /** * Get licenses */ getLicenses(params?: GetLicensesParams): Promise; /** * Get member(s) information */ getMembers(params: GetMembersParams): Promise; /** * Get member info */ getMemberInfo(params?: GetMemberInfoParams): Promise; /** * Get member profile */ getMemberProfile(params?: GetMemberProfileParams): Promise; /** * Get member awards */ getMemberAwards(params?: GetMemberAwardsParams): Promise; /** * Get session results */ getResults(params: GetResultsParams): Promise; /** * Get results event log */ getResultsEventLog(params: GetResultsEventLogParams): Promise; /** * Get results lap chart data */ getResultsLapChartData(params: GetResultsLapChartDataParams): Promise; /** * Get results lap data */ getResultsLapData(params: GetResultsLapDataParams): Promise; /** * Search hosted sessions */ searchHosted(params: SearchHostedParams): Promise; /** * Search series */ searchSeries(params: SearchSeriesParams): Promise; /** * Get season list */ getSeasonList(params?: GetSeasonListParams): Promise; /** * Get season race guide */ getSeasonRaceGuide(params: GetSeasonRaceGuideParams): Promise; /** * Get season results */ getSeasonResults(params: GetSeasonResultsParams): Promise; /** * Get spectator subsession IDs */ getSpectatorSubsessionIds(params: GetSpectatorSubsessionIdsParams): Promise; /** * Get series assets */ getSeriesAssets(params?: GetSeriesAssetsParams): Promise; /** * Get series data */ getSeriesData(params?: GetSeriesDataParams): Promise; /** * Get series past seasons */ getSeriesPastSeasons(params: GetSeriesPastSeasonsParams): Promise; /** * Get series seasons */ getSeriesSeasons(params?: GetSeriesSeasonsParams): Promise; /** * Get series stats */ getSeriesStats(params: GetSeriesStatsParams): Promise; /** * Get member best lap times */ getMemberBests(params?: GetMemberBestsParams): Promise; /** * Get member career stats */ getMemberCareer(params?: GetMemberCareerParams): Promise; /** * Get member division stats */ getMemberDivision(params: GetMemberDivisionParams): Promise; /** * Get member recent races */ getMemberRecentRaces(params?: GetMemberRecentRacesParams): Promise; /** * Get member summary stats */ getMemberSummary(params?: GetMemberSummaryParams): Promise; /** * Get member yearly stats */ getMemberYearly(params?: GetMemberYearlyParams): Promise; /** * Get season driver standings */ getSeasonDriverStandings(params: GetSeasonDriverStandingsParams): Promise; /** * Get season qualify results */ getSeasonQualifyResults(params: GetSeasonQualifyResultsParams): Promise; /** * Get season supersession standings */ getSeasonSupersessionStandings(params: GetSeasonSupersessionStandingsParams): Promise; /** * Get season team standings */ getSeasonTeamStandings(params: GetSeasonTeamStandingsParams): Promise; /** * Get season time trial results */ getSeasonTimeTrialResults(params: GetSeasonTimeTrialResultsParams): Promise; /** * Get season time trial standings */ getSeasonTimeTrialStandings(params: GetSeasonTimeTrialStandingsParams): Promise; /** * Get world records */ getWorldRecords(params?: GetWorldRecordsParams): Promise; /** * Get track assets */ getTrackAssets(params?: GetTrackAssetsParams): Promise; /** * Get all tracks */ getTracks(params?: GetTracksParams): Promise; get(url: string, config?: AxiosRequestConfig): Promise; /** * Generic POST request */ post(url: string, data?: any, config?: AxiosRequestConfig): Promise; /** * Clear authentication tokens */ clearTokens(): void; /** * Get token manager for custom token handling */ getTokenManager(): TokenManager; /** * Get password limited grant auth (if using that flow) */ getPasswordGrantAuth(): PasswordLimitedGrantAuth | undefined; /** * Get authorization code flow auth (if using that flow) */ getAuthCodeFlowAuth(): AuthorizationCodeFlowAuth | undefined; } export * from './types'; export * from './auth'; //# sourceMappingURL=index.d.ts.map