//#region src/modules/flow/flowCompletionService.d.ts type FinishStatus = { redirectionUrl: string; action: 'approved' | 'rejected' | 'none'; scoreStatus: 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL'; /** * Dashboard-configured completion-screen copy. Sourced from POST /omni/start * (session creation), not /omni/finish-status — `getFinishStatus` itself * always returns `null` here and the orchestrated flow overlays the real * values captured at session creation. `null` when the dashboard has no * end-screen configured. Raw values only; hosts apply their own i18n fallback. */ endScreenTitle: string | null; endScreenText: string | null; }; type GetFinishStatusFn = (flowId: string | undefined | null, signal?: AbortSignal) => Promise; declare const getFinishStatus: GetFinishStatusFn; /** The session's overall score status (superset of `FinishStatus['scoreStatus']`). */ type TotalScore = 'OK' | 'WARN' | 'MANUAL_OK' | 'FAIL' | 'UNKNOWN' | 'MANUAL_FAIL' | 'MANUAL' | 'MANUAL_PENDING'; /** The three status-specific finish screens a session can resolve to. */ type FinishScreenVariant = 'success' | 'error' | 'review'; /** Maps a session's `TotalScore` to the finish-screen variant; unknown or absent → `error`. */ declare function classifyScoreStatus(score: TotalScore | undefined): FinishScreenVariant; type GetTotalScoreStatusFn = (signal?: AbortSignal) => Promise; /** Fetches the session's overall score status via a lighter read-only GET. */ declare function getTotalScoreStatus(signal?: AbortSignal): Promise; //#endregion export { TotalScore as a, getTotalScoreStatus as c, GetTotalScoreStatusFn as i, FinishStatus as n, classifyScoreStatus as o, GetFinishStatusFn as r, getFinishStatus as s, FinishScreenVariant as t };