UNPKG

mav-api-ts

Version:

Unofficial, experimental MÁV API library based on the requests by jegy.mav.hu

6 lines (5 loc) 518 B
import { type AxiosRequestConfig, type AxiosResponse } from 'axios'; import { type QueryLanguage } from '../../types/common.type'; import { type Offer } from '../../types/offer.type'; import { type OfferRequestBody } from '../../types/requestBody.type'; export declare function getOffer(params: Partial<OfferRequestBody> & Pick<OfferRequestBody, 'startStationCode' | 'endStationCode' | 'passangers' | 'travelStartDate'>, language?: QueryLanguage, axiosConfig?: AxiosRequestConfig<any>): Promise<AxiosResponse<Offer>>;