/** * How an app handler ended: it returned, it threw a `StepperRefusal`, or it * failed with any other error. * @internal */ export type HandlerOutcome = { kind: 'returned'; value: R; } | { kind: 'refused'; message?: string; } | { kind: 'failed'; }; /** * Runs an app handler and turns its result or error into an outcome. A * failure is reported here, so the caller never sees a rejection. * @internal */ export declare function settleHandler(run: () => Promise): Promise>; //# sourceMappingURL=settle-handler.d.ts.map