@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
10 lines (9 loc) • 472 B
TypeScript
import { EventSyncResult } from '../../core/runtime/EventSyncResult';
import { RuntimeSpan } from '../../core/RuntimeSpan';
/**
* React hook that syncs with PUSH_RESULTS and CLEAR_RESULTS events.
* Maintains the global results array for the unified results panel.
*
* @returns An array containing [results, sync] where results is the current ResultSpan array, and sync is the event handler
*/
export declare function useResultsSync(): EventSyncResult<RuntimeSpan[]>;