import type { Event, Hook, Step, WorkflowRun } from '@workflow/world'; /** * Info about the currently selected span */ export type SpanSelectionInfo = { resource: 'run' | 'step' | 'hook' | 'sleep'; resourceId: string; runId?: string; }; /** * Info about the selected span from the trace viewer. */ export interface SelectedSpanInfo { /** The raw data from the span attributes (step/run/hook object from the trace) */ data?: unknown; /** The span resource type (from span attributes) */ resource?: string; /** The span ID (correlationId for filtering events) */ spanId?: string; /** Raw correlated events from the store (NOT from the trace worker pipeline) */ rawEvents?: Event[]; } /** * Panel component for workflow traces that displays entity details. * * This component is rendered OUTSIDE the trace viewer context — it * receives all data via props rather than reading from context. */ export declare function EntityDetailPanel({ run, onStreamClick, spanDetailData, spanDetailError, spanDetailLoading, onSpanSelect, onWakeUpSleep, onLoadEventData, onResolveHook, encryptionKey, onDecrypt, isDecrypting, selectedSpan, hasEncryptedData, }: { run: WorkflowRun; /** Callback when a stream reference is clicked */ onStreamClick?: (streamId: string) => void; /** Pre-fetched span detail data for the selected span. */ spanDetailData: WorkflowRun | Step | Hook | Event | null; /** Error from external span detail fetch. */ spanDetailError?: Error | null; /** Loading state from external span detail fetch. */ spanDetailLoading?: boolean; /** Callback when a span is selected. Use this to fetch data externally and pass via spanDetailData. */ onSpanSelect: (info: SpanSelectionInfo) => void; /** Callback to wake up a pending sleep call. */ onWakeUpSleep?: (runId: string, correlationId: string) => Promise<{ stoppedCount: number; }>; /** Callback to load event data for a specific event (lazy loading) */ onLoadEventData?: (correlationId: string, eventId: string) => Promise; /** Callback to resolve a hook with a payload. */ onResolveHook?: (hookToken: string, payload: unknown, hook?: Hook) => Promise; /** Encryption key (available after Decrypt is clicked), used to re-load event data */ encryptionKey?: Uint8Array; /** Callback to initiate decryption of encrypted run data */ onDecrypt?: () => void; /** Whether the encryption key is currently being fetched */ isDecrypting?: boolean; /** Info about the currently selected span from the trace viewer */ selectedSpan: SelectedSpanInfo | null; /** Run-level hint: the run contains encrypted data (from probe). */ hasEncryptedData?: boolean; }): React.JSX.Element | null; //# sourceMappingURL=entity-detail-panel.d.ts.map