import { Stop } from "../Journey"; import { FixedLeg } from "../FixedLeg"; import { LocalDate } from "js-joda"; /** * In memory repository of fixed legs */ export declare class InMemoryFixedLegRepository { private readonly fixedLegs; constructor(fixedLegs: FixedLegIndex); /** * Get all legs between the given origin and destination that are available on the given date */ getLegs(origin: Stop, destination: Stop, date: LocalDate): FixedLeg[]; } /** * Provides access to the links table */ export declare class FixedLegRepository { private readonly db; constructor(db: any); /** * Get the in-memory repository */ getInMemoryRepository(): Promise; private indexLeg; } /** * Fixed legs indexed by origin then destination */ export interface FixedLegIndex { [origin: string]: { [destination: string]: FixedLeg[]; }; }