/** * 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'; import type { PublishedVersionInfo } from './form-renderer.js'; /** * The status / metadata strip at the top of a document form — current * workflow status (suppressed for single-status workflows), last-modified and * created timestamps, and a "published live" indicator with an inline * Unpublish action when a previously-published version is still live. */ export declare const FormStatusDisplay: ({ disabled, initialData, workflowStatuses, publishedVersion, onUnpublish, afterStatusCells, }: { disabled?: boolean; initialData?: Record; workflowStatuses?: WorkflowStatus[]; publishedVersion?: PublishedVersionInfo | null; onUnpublish?: () => Promise; /** * Rendered inside the status cell, directly after the status value, so it * reads as a continuation of the same sentence: "Status: Draft — Scheduled * for …". Scheduled publication uses this because an armed schedule is a * statement about the document's lifecycle, not a timestamp to file beside * Created. Falls back to standing alone when the workflow is single-status * and no status cell is drawn. */ afterStatusCells?: React.ReactNode; }) => import("react").JSX.Element;