import type { CliCredentials } from './config'; export type ItemThumbnailSourceLane = 'build' | 'composed-add-on' | 'package-pin' | 'legacy-asset'; export interface ItemThumbnailRefreshOptions { /** Re-render even when the stored thumbnail already matches the renderer + source. */ force?: boolean; /** Report what would change without writing anything. */ dryRun?: boolean; } export interface ItemThumbnailRefreshResult { itemId: string; status: 'generated' | 'current' | 'dry-run'; thumbnailUrl: string | null; previousThumbnailUrl: string | null; rendererVersion?: string; sourceChecksumSha256?: string; source?: { lane: ItemThumbnailSourceLane; packageId?: string; packageVersionId?: string; version?: string; }; [key: string]: unknown; } export interface ItemThumbnailSetResult { itemId: string; status: 'uploaded' | string; thumbnailUrl: string | null; previousThumbnailUrl: string | null; [key: string]: unknown; } /** Translate the server's refusals into text that names the cause and the next step. */ export declare function describeThumbnailError(error: unknown, itemId: string): string; /** Re-render an item's canonical thumbnail from its active Package Version with the standard server renderer. */ export declare function refreshItemThumbnail(itemId: string, options: ItemThumbnailRefreshOptions, credentials: CliCredentials): Promise; /** Shown whenever someone tries to set the catalog card by hand. */ export declare const CATALOG_THUMBNAIL_PLATFORM_ONLY: string; /** * Retired: creators can no longer replace the catalog card (the server refuses * `PUT /thumbnail`). Kept as an export so older callers fail with the reason * instead of a missing symbol; it never touches the network or the file. */ export declare function setItemThumbnail(_itemId: string, _file: string, _credentials: CliCredentials): Promise; /** Human-readable receipt shared by both subcommands. */ export declare function renderItemThumbnailResult(result: ItemThumbnailRefreshResult | ItemThumbnailSetResult): string[];