Found a fix. import Step from shepherd.js/src/types/step; should be removed and import type { StepOptions } from 'shepherd.js'; should be used. Step.StepOptions is no longer valid in latest version of Shepherd.
import Step from shepherd.js/src/types/step;
import type { StepOptions } from 'shepherd.js';
Step.StepOptions