interface SetIndicatored { indicator: 'warmup' | 'dropset' | 'failure' | 'normal' | number; } interface Indexed { index: number; } /** * Accepts any data structure like this: * [ * {indicator: 'warmup', index: 0, ...}, * {indicator: 'normal', index: 1, ...}, * {indicator: 'warmup', index: 2, ...}, * {indicator: 'normal', index: 3, ...}, * {indicator: 'normal', index: 4, ...}, * {indicator: 'failure', index: 5, ...}, * {indicator: 'dropset', index: 6, ...}, * ] * * * And outputs: * ``` * [ * {indicator: 'warmup', index: 0, ...}, * {indicator: 'normal', index: 0, ...}, * {indicator: 'warmup', index: 1, ...}, * {indicator: 'normal', index: 2, ...}, * {indicator: 'normal', index: 3, ...}, * {indicator: 'failure', index: 4, ...}, * {indicator: 'dropset', index: 0, ...}, * ] * ``` */ export declare const indexSetObjectsForUI: (indexedSet: SetIndicatored[]) => Array; /** * This function is almost the exact same as `indexSetObjectsForUI` * but this function will change failure sets to normal. Because when * processing failure sets, they are often considered normal sets. * For example when calculating a previous values, failure sets are * considered normal sets. * * Accepts any data structure like this: * [ * {indicator: 'warmup', index: 0, ...}, * {indicator: 'normal', index: 1, ...}, * {indicator: 'warmup', index: 2, ...}, * {indicator: 'normal', index: 3, ...}, * {indicator: 'normal', index: 4, ...}, * {indicator: 'failure', index: 5, ...}, * {indicator: 'dropset', index: 6, ...}, * ] * * * And outputs: * ``` * [ * {indicator: 'warmup', index: 0, ...}, * {indicator: 'normal', index: 0, ...}, * {indicator: 'warmup', index: 1, ...}, * {indicator: 'normal', index: 2, ...}, * {indicator: 'normal', index: 3, ...}, * {indicator: 'normal', index: 4, ...}, // Note the failure set was flipped to normal. * {indicator: 'dropset', index: 0, ...}, * ] * ``` */ export declare const indexSetObjectsForType: (indexedSet: SetIndicatored[]) => Array; export type UserFacingSetIndicator = 'dropset' | 'warmup' | 'failure' | number; export declare const setObjectToUIFacingSetIndicator: (set: SetIndicatored & Indexed) => UserFacingSetIndicator; export declare const compareUserFacingSetIndicator: (indicatorA: UserFacingSetIndicator, indicatorB: UserFacingSetIndicator) => boolean; export {};