export interface ICancellationToken { isCancelled: () => boolean; throwIfCancelled: () => void; cancel: (reason: string) => void; }