export type SpanStatus = 'pending' | 'running' | 'completed' | 'failed'; export type SpanKind = 'activity' | 'child_workflow'; export interface Span { id: string; name: string; technicalName: string; description: string | null; status: SpanStatus; kind: SpanKind; attempt: number; startedAt: string | null; scheduledAt: string | null; completedAt: string | null; startOffsetMs: number; endOffsetMs: number; durationMs: number; failureMessage: string | null; input?: unknown; output?: unknown; } export type HistoryEvent = Record; export declare function eventTypeName(event: HistoryEvent): string; export declare function eventAttributes(event?: HistoryEvent): Record | undefined; /** * @param events - flat Temporal history events, in chronological order * @param workflowStartTimeMs - epoch ms used as the timeline origin (0 offset) */ export declare function correlate(events: HistoryEvent[], workflowStartTimeMs: number | null): Span[];