import type { Location } from "../types"; /** * Stock indicator style configuration */ export interface StockIndicatorStyle { color: string; backgroundColor: string; text: string; } /** * Gets display name for a location, with fallback options * @param location Location object from API * @param locations Array of all locations (for slug matching) * @param fallback Fallback text if name not found * @returns User-friendly location name */ export declare function getLocationDisplayName(location: any, locations?: Location[], fallback?: string): string; /** * Formats stock display message with allocated stock info * @param availableStock Available stock quantity * @param allocatedStock Allocated/reserved stock quantity * @returns Formatted stock message */ export declare function formatStockMessage(availableStock: number, allocatedStock?: number): string; /** * Gets stock indicator styling based on stock level * @param stock Current stock level * @param lowThreshold Low stock threshold * @param mediumThreshold Medium stock threshold * @returns Style configuration for stock indicator */ export declare function getStockIndicatorStyle(stock: number, lowThreshold?: number, mediumThreshold?: number): StockIndicatorStyle; /** * Formats stock quantity for display with proper units * @param stock Stock quantity * @param showExact Whether to show exact numbers or just indicators * @returns Formatted stock text */ export declare function formatStockQuantity(stock: number, showExact?: boolean): string; /** * Creates a summary message for total stock across locations * @param totalAvailable Total available stock * @param totalAllocated Total allocated stock * @param locationCount Number of locations with stock * @returns Summary message */ export declare function createStockSummaryMessage(totalAvailable: number, totalAllocated?: number, locationCount?: number): string; /** * Determines if more locations indicator should be shown * @param totalLocations Total number of locations with stock * @param displayedLocations Number of locations currently displayed * @param selectedLocationId Currently selected location (if any) * @returns Whether to show "more locations" indicator */ export declare function shouldShowMoreLocationsIndicator(totalLocations: number, displayedLocations: number, selectedLocationId?: string): boolean; /** * Creates "more locations" text * @param totalLocations Total number of locations * @param displayedLocations Number currently displayed * @returns Text for more locations indicator */ export declare function createMoreLocationsText(totalLocations: number, displayedLocations: number): string;