import type { StepperStoreApi } from '../store/StepperStore.types.js'; /** * Marks a step `'pending'` while the task runs, then restores the status the * step had before. When the task rejects, the status is restored the same way * and the error is rethrown. * The restore is skipped when the app replaced the pending status meanwhile, * so a status the app wrote always wins. */ export declare function withPending(store: StepperStoreApi, stepId: string, task: () => Promise | R): Promise; //# sourceMappingURL=with-pending.d.ts.map