import { InsightsPayload, PrimaryCTA } from '../../core'; export interface CompactInsightCardProps { /** A `micro` or `embedded` envelope. */ payload: InsightsPayload; /** * Makes the whole card the tap target. What a tap does is the host's decision (post to the * host app, open a drawer, …); the card never opens anything itself. Omit for a static card. */ onTap?: () => void; /** Receives the primary CTA when tapped. The card does not resolve the CTA's block itself. */ onCtaClick?: (cta: PrimaryCTA) => void; /** * Renders the CTA disabled — label shown, `aria-disabled`, not tappable — for a host that cannot * honour it (e.g. `contact_support_block` when the client's `enable_support_requests` is off). */ isCtaDisabled?: boolean; } /** * The one compact renderer the micro and embedded envelopes share (`insights_v2.2.md` §8.3). * * Figma 1941:111897 (Embedded | Large Transaction): a title row with the overflow slot, the HTML * description with the primary CTA under it, and on the right the slot's `logo` in a * ``. Under ditto's `with_warning_badge` variant the tile takes a status badge; under * `minimal` it draws the logo alone. The card lays out from the envelope alone and never reads * `widget_type`. * * The icon falls back to the neutral insight glyph **here**, not in `LogoFromGuid`, when the slot * carries no logo. The `pill` on the same envelope is the transaction row's, not the card's. */ declare const CompactInsightCard: ({ isCtaDisabled, onCtaClick, onTap, payload, }: CompactInsightCardProps) => import("react/jsx-runtime").JSX.Element; export default CompactInsightCard;