import type { Event, Hook, Step, WorkflowRun } from '@workflow/world'; import { type SpanSelectionInfo } from './sidebar/entity-detail-panel'; /** Re-export SpanSelectionInfo for consumers */ export type { SpanSelectionInfo }; export declare const WorkflowTraceViewer: ({ run, events, isLoading, error, spanDetailData, spanDetailLoading, spanDetailError, onWakeUpSleep, onResolveHook, onCancelRun, onStreamClick, onSpanSelect, onLoadEventData, onLoadMoreSpans, hasMoreSpans, isLoadingMoreSpans, encryptionKey, onDecrypt, isDecrypting, hasEncryptedData, }: { run: WorkflowRun; events: Event[]; isLoading?: boolean; error?: Error | null; spanDetailData?: WorkflowRun | Step | Hook | Event | null; spanDetailLoading?: boolean; spanDetailError?: Error | null; onWakeUpSleep?: (runId: string, correlationId: string) => Promise<{ stoppedCount: number; }>; onResolveHook?: (hookToken: string, payload: unknown, hook?: Hook) => Promise; /** Callback to cancel the current run */ onCancelRun?: (runId: string) => Promise; /** Callback when a stream reference is clicked in the detail panel */ onStreamClick?: (streamId: string) => void; /** Callback when a span is selected. */ onSpanSelect?: (info: SpanSelectionInfo) => void; /** Callback to load event data for a specific event (lazy loading in sidebar) */ onLoadEventData?: (correlationId: string, eventId: string) => Promise; /** Load next trace page when vertical scroll reaches bottom. */ onLoadMoreSpans?: () => void | Promise; /** Whether trace pagination has more data to load. */ hasMoreSpans?: boolean; /** Whether trace pagination is currently fetching another page. */ isLoadingMoreSpans?: boolean; /** Encryption key (available after Decrypt), threaded to event list for re-loading */ encryptionKey?: Uint8Array; /** Callback to initiate decryption of encrypted run data */ onDecrypt?: () => void; /** Whether the encryption key is currently being fetched */ isDecrypting?: boolean; /** Run-level hint: the run contains encrypted data (from probe). */ hasEncryptedData?: boolean; }) => import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=workflow-trace-view.d.ts.map