/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ import type { WorkflowStatus } from '@byline/core'; export interface StatusTransitions { primaryStatus: WorkflowStatus | undefined; secondaryStatuses: WorkflowStatus[]; isTerminal: boolean; } /** * Compute the primary and secondary status transitions for the ComboButton. * - Primary: the main action (forward step), or the current status itself * when the document has reached the final workflow step (terminal state). * - Secondary: other available transitions to show as dropdown options. * - isTerminal: true when the document is at the final workflow status — * the primary button renders as a non-actionable indicator and all * back-steps move into the dropdown. */ export declare function computeStatusTransitions(currentStatus: string | undefined, workflowStatuses: WorkflowStatus[] | undefined, nextStatus: WorkflowStatus | undefined): StatusTransitions;