/** * Display-name helpers for curation labels, statuses, lenses, and sort * options. Internal ids (e.g. "hot", "stale", "production-like") stay * stable for URL state and data files; this module owns the mapping * from id → user-facing string. * * Every export here is dependency-free so it can be imported by both * server-rendered Astro components and any client-side script. */ export type LabelId = 'new' | 'hot' | 'mature' | 'featured'; export declare const LABEL_DISPLAY: Record; /** Returns a human-readable name for a label id, or null if unknown. */ export declare function labelDisplay(id: string | null | undefined): string | null; /** * Canonical status ids, including the curated "needs-maintainer" * composite that's emitted by the `needs-maintainer` lens (it expands * to "stale,quiet" in URL state but presents as one chip). */ export declare const STATUS_DISPLAY: Record; export declare function statusDisplay(s: string | null | undefined): string; export declare const LENS_DISPLAY: Record; export declare function lensDisplay(id: string | null | undefined): string; export declare const SORT_DISPLAY: Record; export declare function sortDisplay(id: string | null | undefined): string; export declare function prettySlug(value: string | null | undefined): string; /** * Up-to-two-letter initials for avatar placeholders (e.g. "Open WebUI" * → "OW"). Shared by every card component so the fallback treatment * stays identical across the directory. */ export declare function nameInitials(name: string | null | undefined): string; export declare const STATUS_OPTIONS: string[]; export declare const LANG_COLORS: Record; /** * Resolve a GitHub Linguist color for a language name. Returns a * neutral ink grey for languages not in the palette so an unknown * language still renders a visible bar segment. */ export declare function langColor(name: string | null | undefined): string; export declare const LICENSE_NOT_DETECTED = "License not detected"; export declare const LICENSE_OTHER = "Other"; /** * Resolve a SPDX id (or GitHub-flavored placeholder) to a * user-facing string. The placeholder ids are collapsed to a * short, neutral phrase; known SPDX ids pass through untouched so * downstream consumers can still match on them. */ export declare function licenseDisplay(spdxId: string | null | undefined): string; //# sourceMappingURL=directory-display.d.ts.map