/** * Catalog stock is reported as a band (in_stock / low_stock / out_of_stock), * never as the underlying exact count: the backend has removed, or will * remove, the exact integer entirely. `availability` is authoritative when * present; the legacy `count` threshold is a fallback for older API payloads, * using the same thresholds the backend itself applies. Fail closed: a row * with neither field is `unknown`, and `unknown` is never in stock. */ export type StockBand = 'in_stock' | 'low_stock' | 'out_of_stock' | 'unknown'; export interface CatalogStockRow { availability?: string; count?: number; } export declare function catalogStockBand(row: CatalogStockRow): StockBand; export declare function isCatalogInStock(row: CatalogStockRow): boolean; export declare function stockBandRank(row: CatalogStockRow): number; //# sourceMappingURL=stock.d.ts.map