import type { WorkflowTopology, WorkflowTraceArtifact, WorkflowTraceEnvelope } from './types';
export interface WorkflowTraceEnvelopeFromEventsOptions {
    runId?: string;
    topology?: WorkflowTopology;
    artifacts?: readonly WorkflowTraceArtifact[];
    metadata?: Record<string, unknown>;
}
export interface WorkflowRuntimeResultLike {
    runId?: string;
    meta?: unknown;
    output?: unknown;
    events: readonly unknown[];
}
export interface WorkflowRuntimeResultToTraceEnvelopeOptions extends Omit<WorkflowTraceEnvelopeFromEventsOptions, 'runId'> {
    runId?: string;
    includeOutputInMetadata?: boolean;
}
export declare function workflowEventsToTraceEnvelope(events: readonly unknown[], options?: WorkflowTraceEnvelopeFromEventsOptions): WorkflowTraceEnvelope;
export declare function workflowRuntimeResultToTraceEnvelope(result: WorkflowRuntimeResultLike, options?: WorkflowRuntimeResultToTraceEnvelopeOptions): WorkflowTraceEnvelope;
//# sourceMappingURL=runtime-adapter.d.ts.map