UNPKG

@golemio/pid

Version:
30 lines (29 loc) 1.21 kB
import { JISInfotextsModel } from "../../../schema-definitions/jis/models/JISInfotextsModel"; import { IJISInfotextDto } from "../../../schema-definitions/jis/redis/interfaces/IJISInfotextDto"; type InfotextUnion = JISInfotextsModel | IJISInfotextDto; export declare class JISInfotextStopSuppressionFilter { filterInfotexts<T extends InfotextUnion>(infotexts: T[], { includeFuture }: { includeFuture: boolean; }): T[]; private filterInfotextsExcludingFuture; private getStopId; private mapTopInfotextSeverityLevelByStopId; private filterInfotextsIncludingFuture; private createInfotextIntermediaries; private mapInfotextsByStopId; private filterStopInfotexts; private segmentInfotexts; private findSegmentationThreshold; private addDay; private segmentRepeatedInfotext; private getMaxSegmentationDayForInfotext; private getDatetimeFromRepeatTime; private fitFiniteSegmentToInfotextTimeBounds; private sortAndFilterSegments; private isSegmentBLesserThanA; private findUniqueInfotextsFromSegments; private mapInfotextIdsByStopId; private filterAllInfotexts; private createInfotextsFromIntermediaries; } export {};