UNPKG

trackswap

Version:

A powerful and flexible GPX parser and encoder library for Node.js and TypeScript. TrackSwap provides comprehensive support for GPX 1.1 format with advanced features like plugin system, middleware support, and optimized performance.

35 lines (34 loc) 1.29 kB
import { IFITMessageConverter, IFITStructurePlugin } from "./base.js"; import { FITContext } from "./types.js"; export declare enum FITPipelineStage { PARSE = "parse", EXTRACT = "extract", STRUCTURE = "structure", COMPLETE = "complete" } export interface IFITPipelineProcessor { stage: FITPipelineStage; process(context: FITContext): Promise<FITContext>; } export declare class ParseProcessor implements IFITPipelineProcessor { stage: FITPipelineStage; process(context: FITContext): Promise<FITContext>; private parseWithFitSDK; } export declare class ExtractProcessor implements IFITPipelineProcessor { private getConverters; stage: FITPipelineStage; constructor(getConverters: (messageType: string) => IFITMessageConverter[]); process(context: FITContext): Promise<FITContext>; } export declare class StructureProcessor implements IFITPipelineProcessor { private getStructurePlugins; stage: FITPipelineStage; constructor(getStructurePlugins: () => IFITStructurePlugin[]); process(context: FITContext): Promise<FITContext>; } export declare class CompleteProcessor implements IFITPipelineProcessor { stage: FITPipelineStage; process(context: FITContext): Promise<FITContext>; private countTotalMessages; }