/** * Catalog product images are often signed absolute API URLs (e.g. http://localhost:3015/api/...). * Customer/kiosk PWAs proxy `/api` on the same origin in dev — rewrite to pathname so `` * and fetch stay same-origin (CSP + CORP safe). * * Branding streams (tenant logo / sales-point image) use the same `/api/...` rewrite path via * `toSameOriginCatalogImageUrl` / `resolveBrandingDisplayImageUrl`. */ /** Tenant-prefixed or normalized public branding stream paths (logo / SP image ± thumbnail). */ export declare const BRANDING_CATALOG_IMAGE_PATH: RegExp; export interface CatalogImageUrlOptions { /** Required to upgrade legacy kiosk URLs `/api/products/{id}/image` → `/api/{tenant}/v1/products/{id}/image`. */ readonly tenantCode?: string | null; } export declare function toSameOriginCatalogImageUrl(url: string | null | undefined, options?: CatalogImageUrlOptions): string | null; export declare function resolveCatalogDisplayImageUrl(thumbnailUrl: string | null | undefined, imageUrl: string | null | undefined, options?: CatalogImageUrlOptions): string | null; export declare function resolveDonationDisplayImageUrl(thumbnailUrl: string | null | undefined, imageUrl: string | null | undefined, options?: CatalogImageUrlOptions): string | null; /** * Same-origin rewrite for tenant logo / sales-point image URLs (absolute API → pathname). * Branding paths have no legacy `/api/tenants/...` form; rewrite is pathname+query only. */ export declare function resolveBrandingDisplayImageUrl(thumbnailUrl: string | null | undefined, imageUrl: string | null | undefined, options?: CatalogImageUrlOptions): string | null; export declare function isBrandingCatalogImagePath(pathname: string): boolean; //# sourceMappingURL=catalogImageUrl.d.ts.map