import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { StopTime } from './models/cluster-stoptimes.model'; import * as i0 from "@angular/core"; export declare class RealtimeDataService { private http; constructor(http: HttpClient); getClusterStoptimes(cluster: string, line?: string): Observable; /** * We don't need all patterns (multiple patterns, same direction). * Merge stoptimes using the pattern.lastStop property. */ mergeStopTimes(stopTimes: StopTime[]): StopTime[]; filterStopTimes(stopTimes: StopTime[]): StopTime[]; /** * Sort stoptimes by the first time object on each stoptimes (using realtimeDeparture OR scheduledDeparture and serviceDay properties). * The times property of each stoptimes must be sorted before using this method. */ sortStopTimes(a: StopTime, b: StopTime): 0 | 1 | -1; /** * Sort the times array of a stoptime. */ sortTimes(stopTime: StopTime): StopTime; parseStopTimes(stopTimes: StopTime[]): StopTime[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }