import { type JourneyHandle, type JourneyStepOptions, type StepHandle } from '../../core'; /** * Run a step on the active `` journey, an explicit name, or a handle. * A handle auto-starts when the journey is not open; a bare name does not. * * @example * const runStep = useJourneyStep(); * await runStep('load', async step => { await api.get('/x', { stamp: step.stamp() }); }); */ export declare function useJourneyStep(journey?: string | JourneyHandle | null): (stepName: string, fn: (step: StepHandle) => T | Promise, opts?: JourneyStepOptions) => Promise; //# sourceMappingURL=use-journey-step.d.ts.map