/** * @fileoverview Real-time status and stop sequence for an active trip. * @module mcp-server/tools/definitions/get-trip.tool */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const getTrip: import("@cyanheads/mcp-ts-core").ToolDefinition; includeSchedule: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ tripId: z.ZodString; routeShortName: z.ZodString; tripHeadsign: z.ZodString; blockId: z.ZodNullable; status: z.ZodObject<{ phase: z.ZodString; predicted: z.ZodBoolean; position: z.ZodNullable>; scheduleDeviation: z.ZodNumber; nextStop: z.ZodNullable; closestStop: z.ZodNullable; vehicleId: z.ZodNullable; lastUpdateTime: z.ZodNumber; }, z.core.$strip>; schedule: z.ZodNullable>>; situations: z.ZodArray; }, z.core.$strip>, readonly [{ readonly reason: "trip_not_found"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "Trip ID not found or not active for the service date."; readonly recovery: "Verify the tripId from an arrivals response; if the trip has completed, fetch the schedule instead with onebusaway_get_schedule_for_route."; readonly thrownBy: "service"; }, { readonly reason: "rate_limited"; readonly code: JsonRpcErrorCode.RateLimited; readonly retryable: true; readonly when: "No upstream request slot opened within the queue wait cap, or OneBusAway returned a rate limit response."; readonly recovery: "Wait the seconds given in data.retryAfter, then retry — one API key is shared across all callers, so requests queue against a global budget rather than failing per caller."; readonly thrownBy: "service"; }], undefined>; //# sourceMappingURL=get-trip.tool.d.ts.map