import { Stop, Time } from "./Journey"; /** * A leg of a journey (one particular service of the overall journey) */ export interface Leg { origin: Stop; destination: Stop; mode: Mode; isAvailableAt: (time: Time) => boolean; earliestArrivalTime: (time: Time) => Time; id: string; } /** * Types of leg, a superset of GTFS modes that includes replacement bus */ export declare enum Mode { TRAIN = "train", BUS = "bus", REPLACEMENT_BUS = "replacement bus", WALK = "walk", TUBE = "tube", TRAM = "tram", FUNICULAR = "funicular", FERRY = "ferry", CABLE = "cable car", METRO = "metro", TRANSFER = "transfer" }