import type { ProviderUsageSnapshot } from '../../../core/models/response.js'; import type { UsageEventLogContext } from '../../../core/logging/usageEventLogger.js'; import type { SessionLog } from '../../../infra/fs/index.js'; import { type SessionState } from '../../../infra/config/index.js'; import type { WorkflowTraceDiscovery } from '../../../core/workflow/observability/traceDiscovery.js'; import { createOutputFns } from './outputFns.js'; export interface WorkflowSessionFinalization { readonly sessionLog: SessionLog; readonly sessionState: SessionState; } export declare function buildWorkflowSuccessSessionFinalization(input: { readonly sessionLog: SessionLog; readonly task: string; readonly workflowName: string; readonly lastStepContent: string | undefined; readonly lastStepName: string | undefined; readonly endTime: string; }): WorkflowSessionFinalization; export declare function persistWorkflowSessionState(projectCwd: string, publicationId: string, sessionState: SessionState, sessionStorageDirectory?: string): void; export declare function buildWorkflowAbortSessionFinalization(input: { readonly sessionLog: SessionLog; readonly reason: string; readonly task: string; readonly workflowName: string; readonly lastStepName: string | undefined; readonly endTime: string; }): WorkflowSessionFinalization; export declare function reportStepFile(filePath: string, fileName: string, out: ReturnType): void; export declare function reportWorkflowCompletion(out: ReturnType, sessionLog: SessionLog, iteration: number, ndjsonLogPath: string, shouldNotifyWorkflowComplete: boolean, traceDiscovery?: Pick): void; export declare function reportWorkflowFailure(out: ReturnType, sessionLog: SessionLog, iteration: number, reason: string, status: 'aborted' | 'failed', ndjsonLogPath: string, shouldNotifyWorkflowAbort: boolean, traceDiscovery?: Pick): void; export declare function updateUsageForStepCompletion(usageEventLogger: { logUsageFor: (context: UsageEventLogContext, usage: { success: boolean; usage: ProviderUsageSnapshot; }) => void; }, context: UsageEventLogContext, response: { status: string; providerUsage?: ProviderUsageSnapshot; }): void; //# sourceMappingURL=workflowExecutionReporting.d.ts.map