import * as react_jsx_runtime from 'react/jsx-runtime'; /** * CopilotPlanCard — WealthX DS (Molecule) * * Renders an agentic plan the broker Copilot proposes: a named plan with a * description and an ordered list of steps that execute one-by-one. Each step * shows its own status (pending / running / done / failed) and the card carries * an "Execute Plan" affordance below the steps. * * Composes Card + Button + Badge + Spinner + TypingDots. Pure display: the host * wires onExecute to the real side-effect and drives `status` + per-step * `status` as execution progresses. */ type CopilotPlanStepStatus = "pending" | "running" | "done" | "failed"; interface CopilotPlanStep { /** Step label, e.g. "Read the loan application details from WealthX". */ label: string; /** Optional detail shown under the label. */ description?: string; /** Execution status of this step. Defaults to "pending". */ status?: CopilotPlanStepStatus; } type CopilotPlanStatus = "idle" | "running" | "done" | "failed"; interface CopilotPlanCardProps { /** Plan name shown as the card title, e.g. "Quickli Scenario Sync". */ title: string; /** What the plan does. */ description?: string; /** Ordered steps, executed one-by-one. */ steps: CopilotPlanStep[]; /** Overall plan lifecycle. Defaults to "idle". */ status?: CopilotPlanStatus; /** Runs the plan. When provided, renders the execute / retry button. */ onExecute?: () => void; /** * Stops an in-progress run. When provided, the running state swaps the * disabled "Executing…" button for a clickable Stop button so the host can * abort execution. */ onCancel?: () => void; /** Label for the idle execute button. Defaults to "Execute Plan". */ executeLabel?: string; /** Label while the plan is running. Defaults to "Executing…". */ runningLabel?: string; /** Label for the retry button after a failed run. Defaults to "Retry Plan". */ retryLabel?: string; /** Label for the stop button while running. Defaults to "Stop". */ cancelLabel?: string; className?: string; } declare function CopilotPlanCard({ title, description, steps, status, onExecute, onCancel, executeLabel, runningLabel, retryLabel, cancelLabel, className, }: CopilotPlanCardProps): react_jsx_runtime.JSX.Element; export { CopilotPlanCard, type CopilotPlanCardProps, type CopilotPlanStatus, type CopilotPlanStep, type CopilotPlanStepStatus };