import { Leg, Mode } from "./Leg"; import { Stop, Time } from "./Journey"; import { Trip } from "./Trip"; /** * Service Code e.g CS101010 */ export declare type ServiceID = string; /** * Operator e.g. SE */ export declare type OperatorID = string; /** * Platform e.g. 2C */ export declare type Platform = string; /** * A timetable leg has a particular departure and arrival time */ export declare class TimetableLeg implements Leg { readonly origin: Stop; readonly destination: Stop; readonly departureTime: Time; readonly arrivalTime: Time; readonly callingPoints: CallingPoint[]; readonly trip: Trip; constructor(origin: Stop, destination: Stop, departureTime: Time, arrivalTime: Time, callingPoints: CallingPoint[], trip: Trip); /** * Mode of transport */ readonly mode: Mode; /** * Returns true if it is possible to board the leg at the given time */ isAvailableAt(time: Time): boolean; /** * Timetable legs have a specific arrival time */ earliestArrivalTime(time: Time): Time; /** * ID that uniquely identifies this leg */ readonly id: string; } /** * Stop at a particular station. */ export declare class CallingPoint { readonly station: Stop; readonly arrivalTime: Time; readonly departureTime: Time; readonly pickup: boolean; readonly dropoff: boolean; readonly platform: Platform; constructor(station: Stop, arrivalTime: Time, departureTime: Time, pickup: boolean, dropoff: boolean, platform: Platform); }