@bitcobblers/wod-wiki-library
Version:
A specialized markdown-like workout syntax editor and runtime for defining workouts
18 lines (17 loc) • 649 B
TypeScript
import { JitStatement } from './JitStatement';
import { BlockKeyFragment } from './BlockKeyFragment';
import { IRuntimeBlock } from './IRuntimeBlock';
export declare class BlockKey {
key: BlockKeyFragment[];
index: number;
static create(block: IRuntimeBlock): BlockKey;
/**
* Create a BlockKey from its string representation
* @param str The string representation of a BlockKey, like "1,2(0)|3(1)"
* @returns A new BlockKey instance
*/
static fromString(str: string): BlockKey;
push(statements: JitStatement[], index: number): void;
not(other: BlockKey): BlockKeyFragment[];
toString(): string;
}