UNPKG

mav-api-ts

Version:

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

6 lines (5 loc) 473 B
import { type AxiosRequestConfig, type AxiosResponse } from 'axios'; import { type QueryLanguage } from '../../types/common.type'; import { type TrainInfoRequestBody } from '../../types/requestBody.type'; import { type TrainInfo } from '../../types/trainInfo.type'; export declare function getTrainInfo(query: Omit<TrainInfoRequestBody, 'type' | 'minCount' | 'maxCount'>, language?: QueryLanguage, axiosConfig?: AxiosRequestConfig<any>): Promise<AxiosResponse<TrainInfo>>;