import type { PlannerEvent, PlannerRequest, PlannerResponse } from "./Protocol.js"; /** * Answers planning requests against a feed it holds on to. * * The feed and the network stay on this side. A national feed is hundreds of megabytes of objects * and copying it to the other side of a worker boundary would cost more than building it did, so * only the journeys asked for are sent back, and those are a few thousand objects at most. * * This knows nothing about workers, so it can be driven directly by a test or by a caller that * would rather not have one. */ export declare class PlannerHost { private feed; private network; private readonly resultsFactory; handle(request: PlannerRequest, post: (event: PlannerEvent) => void): Promise; private load; private plan; private stops; private loaded; }