declare const SPECS_ICONS_BASE = "https://specs.politogyvrm.com/api/icons"; /** Public 302 to Brand `assets.favicon` (`?kind=apple` → `assets.appleIcon`). */ declare const SPECS_FAVICON_URL = "https://specs.politogyvrm.com/api/favicon"; /** * @deprecated No longer used and will be removed. It was a hardcoded copy of an * old `assets.logoSquare` upload, used as a stand-in favicon — a bundled copy * of one Brand asset substituted for another, which the Brand forbids. */ declare const VRM_FALLBACK_ICON = "https://lzhzqtzwlwdffxhjjrba.supabase.co/storage/v1/object/public/brand-assets/logo-square/logo-square-mrspraen.png"; type PolitogyIconVariant = { url: string; fallback?: boolean; }; type PolitogyIconsResponse = { app: string; version?: number; updatedAt?: string; icons: Record; }; /** Next.js `metadata.icons` shape (a subset — url/rel entries). */ type PolitogyMetadataIcons = { /** Falls back to SPECS_FAVICON_URL when the Brand API supplied no browser-tab icon. */ icon: { url: string; }[]; shortcut?: { url: string; }[]; apple?: { url: string; }[]; }; /** * Fetch the resolved icon set for an app and shape it for Next `metadata`. * * Cached for 60s with revalidation, matching the tokens contract — a Brand edit * shows up promptly without defeating caching. Never throws: on any failure it * returns the SPECS_FAVICON_URL redirect, so an app can call this unguarded in metadata. */ declare function politogyAppIcons(app: string, init?: { baseUrl?: string; revalidateSeconds?: number; fetchImpl?: typeof globalThis.fetch; }): Promise; /** Pure shaping step — exported for tests and for callers with their own fetch. */ declare function toMetadataIcons(data: PolitogyIconsResponse | null): PolitogyMetadataIcons; export { type PolitogyIconVariant, type PolitogyIconsResponse, type PolitogyMetadataIcons, SPECS_FAVICON_URL, SPECS_ICONS_BASE, VRM_FALLBACK_ICON, politogyAppIcons, toMetadataIcons };