import { Leg, Mode } from "./Leg"; import { Stop, Time } from "./Journey"; import { CalendarDate } from "./Trip"; /** * Fixed legs do not operate to a specific schedule but have a duration instead */ export declare class FixedLeg implements Leg { readonly origin: Stop; readonly destination: Stop; readonly mode: Mode; readonly duration: Time; readonly startTime: Time; readonly endTime: Time; readonly calendar: CalendarDate; constructor(origin: Stop, destination: Stop, mode: Mode, duration: Time, startTime: Time, endTime: Time, calendar: CalendarDate); /** * Returns true if the given time is between the start and end time */ isAvailableAt(time: Time): boolean; /** * Add the duration of this leg to the departure time to return the earliest arrival time */ earliestArrivalTime(departureTime: Time): Time; /** * ID that uniquely identifies this leg */ readonly id: string; }