/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ import type { Card } from "./model/cards.js"; import { type PartActions, type PartStyles } from "./parts.js"; /** What a card asks of the Query tab, besides its parts'. */ export interface CardActions extends PartActions { /** Moves a step up (`-1`) or down (`1`). */ readonly onMove: (stepId: string, by: -1 | 1) => void; /** Takes a step out. */ readonly onRemoveStep: (stepId: string) => void; } /** Props of {@link StepCard}. */ export interface StepCardProps { /** The card. */ readonly card: Card; /** How many steps the query has. */ readonly count: number; /** Whether an issue the history item went to is on it. */ readonly focused: boolean; /** The parts' styles, and the words. */ readonly ps: PartStyles; /** What its parts and its buttons ask. */ readonly actions: CardActions; } /** * Renders a step's card — see the module docs. * * @param props - The card, the step count, and what it asks ({@link StepCardProps}) * @returns The card */ export declare const StepCard: import("react").MemoExoticComponent<({ card, count, focused, ps, actions }: StepCardProps) => import("react/jsx-runtime").JSX.Element>; //# sourceMappingURL=step-card.d.ts.map