import type { WorkflowExecutionEvent } from "@stigmer/protos/ai/stigmer/agentic/workflowexecution/v1/event_pb";
import type { WorkflowEventStreamState, DerivedTaskState } from "../internal/store/workflow-execution-event-store.js";
/** Props for {@link WorkflowExecutionTimeline}. */
export interface WorkflowExecutionTimelineProps {
    /** Events ordered by sequence_number ascending. */
    readonly events: readonly WorkflowExecutionEvent[];
    /** Current stream lifecycle state. */
    readonly streamState: WorkflowEventStreamState;
    /** Callback when user clicks an agent execution link. */
    readonly onNavigateToAgentExecution?: (executionId: string) => void;
    /** Derived task states for rendering interactive approval cards. */
    readonly taskStates?: ReadonlyMap<string, DerivedTaskState>;
    /** Callback to submit a human_input task approval decision. */
    readonly onSubmitTaskApproval?: (taskName: string, outcome: string, formData?: Record<string, unknown>, comment?: string) => Promise<unknown>;
    /**
     * Task names whose human_input approval is currently in flight, keyed by
     * `taskName` so deciding one gate never spins another. Supply
     * {@link useWorkflowExecutionActions}'s `taskApprovalSubmittingTaskNames`.
     */
    readonly taskApprovalSubmittingTaskNames?: ReadonlySet<string>;
    /**
     * Per-gate human_input approval failures, keyed by `taskName`. Supply
     * {@link useWorkflowExecutionActions}'s `taskApprovalErrorsByTaskName`.
     */
    readonly taskApprovalErrorsByTaskName?: ReadonlyMap<string, Error>;
    /** Additional CSS class names. */
    readonly className?: string;
}
/**
 * Scrollable event timeline for a workflow execution.
 *
 * Renders each event through `WorkflowExecutionTimelineEvent` and
 * auto-scrolls to the bottom when new events arrive during live
 * streaming, using a bottom sentinel + IntersectionObserver pattern
 * consistent with DD-009.
 *
 * Auto-scroll activates only when the sentinel is visible (user is
 * near the bottom). When the user scrolls up, auto-scroll pauses
 * to allow reading history.
 */
export declare const WorkflowExecutionTimeline: import("react").NamedExoticComponent<WorkflowExecutionTimelineProps>;
//# sourceMappingURL=WorkflowExecutionTimeline.d.ts.map