export interface LatLng { latitude: number; longitude: number; } export interface RouteConfig { /** Ordered polyline points (WGS84). */ route: LatLng[]; /** Corridor radius in meters. */ corridorRadiusM?: number; /** Heading tolerance for wrong-direction (degrees). */ wrongDirectionToleranceDeg?: number; } export type SpatialEvent = { type: 'inCorridor'; distanceToRouteM: number; } | { type: 'outOfCorridor'; distanceToRouteM: number; } | { type: 'offRoute'; distanceToRouteM: number; } | { type: 'wrongDirection'; headingDeg: number; expectedBearingDeg: number; deltaDeg: number; } | { type: 'returnedToRoute'; distanceToRouteM: number; }; /** * Spatial Intelligence MVP (JS implementation). * * - Corridor monitoring (in/out) * - Off-route detection * - Wrong-direction heuristic * * Events are logged to DiagnosticsEngine (and best-effort native log) so they remain * available offline and in headless contexts. */ declare class SpatialEngine { private config; private wasOut; setRoute(config: RouteConfig): void; clearRoute(): void; /** * Evaluate a location point against the configured route. * Returns 0..n events for this point. */ evaluate(point: LatLng & { headingDeg?: number | null; }): SpatialEvent[]; } export declare const Spatial: SpatialEngine; export default Spatial; //# sourceMappingURL=Spatial.d.ts.map