import { IEventContext, IShowStyleUserContext, Time } from '..'; import { IPartAndPieceActionContext } from './partsAndPieceActionContext'; import { IExecuteTSRActionsContext } from './executeTsrActionContext'; /** * Context in which 'current' is the partInstance we're leaving, and 'next' is the partInstance we're taking */ export interface IOnTakeContext extends IPartAndPieceActionContext, IShowStyleUserContext, IEventContext, IExecuteTSRActionsContext { /** Inform core that a take out of the taken partinstance should be blocked until the specified time */ blockTakeUntil(time: Time | null): Promise; /** * Prevent the take. * All modifications to the pieceInstances and partInstance done through this context will be persisted, * but the next part will not be taken. */ abortTake(): void; } //# sourceMappingURL=onTakeContext.d.ts.map