import type { GatewayWorkflowHost } from '../../gateway/gateway-workflow-host.types.js'; import type { WorkflowRunView } from '../domain/index.js'; export declare const WORKFLOW_SESSION_TYPE = "workflow-run"; export declare const WORKFLOW_RUN_LINK_CONTEXT_KIND = "workflow-run-link"; export interface PrepareWorkflowRunSessionParams { runId: string; agentId: string; definitionId: string; definitionTitle: string; goal: string; parentSessionKey?: string; projectId?: string; } export interface PrepareWorkflowRunSessionResult { sessionKey: string; } export declare class WorkflowSessionBridge { private readonly gateway; private readonly terminalPersistedRunIds; constructor(gateway: GatewayWorkflowHost); prepareRunSession(params: PrepareWorkflowRunSessionParams): Promise; handleRunViewUpdated(view: WorkflowRunView): Promise; private persistTerminalTranscript; private writeParentRunLink; private recordProjectWorkflowMemory; } export declare function formatParentRunLinkText(params: { definitionId: string; goal: string; status: WorkflowRunView['run']['status']; }): string;