repond-events
Version:
events for repond
26 lines (25 loc) • 1.89 kB
TypeScript
import { EventBlock, EventBlockBase, EventBlockOptions, EventBlockTuple, EventTypeDefinition, RunMode, RunModeExtraOptions } from "./types";
export declare function getElapsedTime(liveId?: string): number;
export declare function eventTupleToEventBlock(eventTuple: EventBlockTuple): EventBlock;
export declare function toEventBlockIfNeeded(event: EventBlockTuple | EventBlock): EventBlock;
export declare function eventTuplesToEventBlocks(eventTuples: (EventBlockTuple | EventBlock)[]): EventBlock[];
export declare function getLiveIdsForGroup(group: string): string[];
export declare function getLiveEventsIdsUpToLiveEventId(liveId: string): any;
export declare function findFirstNonActiveEventIndex(liveEventIds: string[]): number;
export declare function getActiveEventIds(liveEventIds: string[]): string[];
export declare function getChainIdFromLiveEventId(liveId: string): string;
export declare function getNewChainId(): string;
export declare function runEventHandler(liveEventId: string): Promise<void>;
export declare function finalizeEvent(liveEventId: string): void;
export declare function _makeLiveIdFromEventBlock(event: EventBlock): string;
export declare function makeNewChainId(): string;
export declare function eventBlockBaseToEventBlock(eventBlockBase: EventBlockBase, options?: EventBlockOptions): EventBlock;
export declare function getEventTypeDefinition(group: string, name: string): EventTypeDefinition<any>;
export declare function _addEvents(eventBlocks: EventBlock[], listOptions: EventBlockOptions): import("./types").ChainId;
export declare function _addEvent(event: EventBlockBase, options: EventBlockOptions): import("./types").ChainId;
export declare function _setStatesToRunEventsInMode({ runMode, targetLiveIds, chainId, runOptions, }: {
runMode: RunMode;
chainId?: string;
targetLiveIds?: string[];
runOptions?: RunModeExtraOptions;
}): {};