@sports-alliance/sports-lib
Version:
A Library to for importing / exporting and processing GPX, TCX, FIT and JSON files from services such as Strava, Movescount, Garmin, Polar etc
10 lines (9 loc) • 621 B
TypeScript
import { ActivityParsingOptions } from '../activities/activity-parsing-options';
import { ActivityInterface } from '../activities/activity.interface';
export interface StreamSelection {
importAllowSet: Set<string>;
outputAllowSet: Set<string>;
}
export declare function getStreamSelectionFromOptions(options: ActivityParsingOptions): StreamSelection | null;
export declare function isStreamTypeAllowedForImport(dataType: string, streamSelection: StreamSelection | null): boolean;
export declare function pruneActivityStreamsBySelection(activity: ActivityInterface, streamSelection: StreamSelection | null): void;