/** * Lib-side default `buildProductReleaseCardProps` for the chat dispatch. * * The compact (`size='sm'`) branch of `` only reads * `coverImage`, `hasVideoCover`, and `formattedDate` — the rest of the * derived prop bundle is catalog-page (`size='lg'`) metadata. This * default builder satisfies the three sm-relevant fields with row data * the list-API already returns, so embedders that don't supply * `opts.extras.buildProductReleaseCardProps` still get a rendered card * instead of a bare text chip. Hub-side embedders pass their richer * builder via `extras` to get the lg-only fields (changelogCounts, * badge color, view count, etc.). */ import { type ReleaseType, type ReleaseTypeBadgeColor } from '../../../utils/release-badge'; interface DerivedSmProps { coverImage: string | null; hasVideoCover: boolean; formattedDate: string; } export declare function defaultBuildProductReleaseCardProps(item: unknown): DerivedSmProps; export interface ProductReleaseCardDerivedProps { coverImage: string | null; hasVideoCover: boolean; formattedDate: string; releaseType: ReleaseType | undefined; releaseStatus: 'alpha' | 'beta' | 'stable' | 'deprecated' | undefined; releaseTypeBadgeColor: ReleaseTypeBadgeColor | undefined; viewCount: number; author: { full_name: string; avatar_url: string | null; job_title: string | null; } | undefined; changelogCounts: { features: number; fixes: number; improvements: number; breaking: number; }; } /** * The RICH `lg`-variant builder — populates the full metadata grid (Type / * Status / author / view count / changelog counts) the `lg` `ProductReleaseCard` * renders. This is the DEFAULT `buildCardProps` for ``, so * embedders get the full card config-only. (Lifted from the hub; before this, * the example fell back to the sm builder and the lg Type/Status/author cells * rendered as em-dash placeholders.) The sm chat card keeps * `defaultBuildProductReleaseCardProps` — it ignores the lg-only fields. */ export declare function buildProductReleaseCardProps(item: unknown): ProductReleaseCardDerivedProps; export {}; //# sourceMappingURL=product-release-card-defaults.d.ts.map