import { Journey, Stop, TransferPatternRepository } from "../"; import { LocalDate } from "js-joda"; /** * Plans journeys between pairs of origins and destinations using the TransferPatternRepository as a source of journeys. */ export declare class JourneyPlanner { private readonly transferPatterns; private readonly filters; constructor(transferPatterns: TransferPatternRepository, filters: JourneyFilter[]); /** * Plan a journey from each origin to each destination, apply the filters and then sort the result. */ planJourneys(origins: Stop[], destinations: Stop[], date: LocalDate): Promise; /** * Use the transfer pattern repository to load the transfer patterns and extract the journeys */ private getJourneys; } /** * Filters a list of journeys */ export declare type JourneyFilter = (journeys: Journey[]) => Journey[];