/** * Live consumer chrome (customer PWA + pickup) — square logo URLs only. * * Backend may send additive `wordmarkUrl` on customer-tenants / memberships DTOs; * live directory thumbs and tenant chips must ignore it. `applyToCustomerPwa` * gating is server-side (null `logoUrl` / `tenantLogoUrl` when flag off). * * Logo chip rim: see `logoChipRim.ts` — wire may omit rim fields; normalize * always fills the four required slots (defaults when absent/invalid). */ import { type LogoChipBackgroundSettings } from './logoChipBackground.js'; import { type LogoChipRimSettings } from './logoChipRim.js'; /** Normalize a square logo stream URL for consumer thumbs/chips; null when absent/blank. */ export declare function resolveConsumerSquareLogoUrl(value: unknown): string | null; export type ConsumerSquareLogoTheme = 'light' | 'dark'; export interface ConsumerSquareLogoSettings { readonly logoUrl: string | null; readonly logoUrlDark: string | null; } export interface ConsumerPublicTenantRow extends LogoChipRimSettings, LogoChipBackgroundSettings { readonly tenantId: number; readonly code: string; readonly name: string; /** Square tenant logo only — never wordmark. */ readonly logoUrl: string | null; /** Optional dark-regime square logo; falls back to {@link logoUrl} when absent. */ readonly logoUrlDark: string | null; } /** * Resolve the square logo URL for the active theme. * Light theme: `logoUrl` → `logoUrlDark` → null. * Dark theme: `logoUrlDark` → `logoUrl` → null. */ export declare function resolveConsumerSquareLogoForTheme(settings: ConsumerSquareLogoSettings, theme: ConsumerSquareLogoTheme): string | null; /** * Pick public tenant-directory fields from a wire row. * Ignores additive `wordmarkUrl` even when present on the payload. * Preserves logo-chip rim fields (coerce invalid → defaults; never strip). */ export declare function normalizeConsumerPublicTenantRow(raw: unknown): ConsumerPublicTenantRow | null; //# sourceMappingURL=consumerSquareLogo.d.ts.map