import React from 'react'; import type { DocumentVersion } from '@pantheon-systems/css-client'; import type { P1Client } from '@pantheon-systems/css-client'; import type { VersionAuthorNameOptions } from '../versioning/utils/versionAuthorName.js'; export type GoLiveMode = 'live-review' | 'workstream' | 'workstream-page'; export interface GoLiveFlowProps extends VersionAuthorNameOptions { mode: GoLiveMode; client: P1Client; siteId: string; sourceBranchId: string; targetBranchId: string; workstreamName: string; siteName: string; siteHost: string; logoUrl?: string; /** Swaps in the demo go-live screens. */ goLiveStub?: boolean; currentDocument: { id: string; path: string; }; versions: DocumentVersion[]; config: any; /** * Flushes a just-made edit to a durable, queryable version before the * first merge-preview fetch (every mode but live-review) — otherwise the * preview can be read before the edit lands on the workstream's head and * silently omits it. Pass the editor's `persistCurrentEdits`. */ onBeforeLoadPreview?: () => Promise; onClose: () => void; onComplete: () => void; } export declare function GoLiveFlow(props: GoLiveFlowProps): React.ReactElement;