import type { StockState } from "../Commerce/commerceTypes"; /** Text size; the dot scales with it. */ export type StockStatusSize = "sm" | "md"; /** Availability as a dot plus words, never colour alone. */ export interface StockStatusProps { /** Availability: in-stock and low-stock read as success and warning, backorder as info, out-of-stock as muted. */ status: StockState; /** Units left; shown as "Only 3 left" for low-stock only, ignored for every other state. */ count?: number; /** Replaces the default words, e.g. "In stock ยท ships within 24 hours". */ message?: string; /** Text size; defaults to "md". */ size?: StockStatusSize; /** Test id on the root element. */ "data-testid"?: string; }