import type { ProviderPctMap } from './types';
export declare const PERSONALIZATION_STORAGE_SCOPE = "smart-card-social-proof";
export declare const PERSONALIZATION_STORAGE_ITEM_KEY_PREFIX = "pct-map:v1:";
export declare const PERSONALIZATION_PROVIDER_PCT_TTL_MS: number;
export declare const SOCIAL_PROOF_TRAIT_NAME = "sl_3p_connected_providers_site_pct";
/**
 * Service for fetching site-level traits from the TAP Delivery personalization API.
 */
export declare class PersonalizationService {
    private cache;
    /** Pure synchronous read for an explicit cloud id / trait pair. */
    getProviderPctMapSync(cloudId: string | undefined, traitName: string): ProviderPctMap | null;
    getProviderPctMap(cloudId: string | undefined, traitName: string): Promise<ProviderPctMap | undefined>;
    private readStoredProviderPctMap;
    private writeStoredProviderPctMap;
    private normalizeProviderPctMap;
    private parseTraitValue;
    clearCache(): void;
    private clearStoredProviderPctMaps;
}
export declare const personalizationService: PersonalizationService;
export declare const getProviderPctMap: (cloudId: string | undefined, traitName: string) => Promise<ProviderPctMap | undefined>;
export declare function getProviderPctMapSync(cloudId: string | undefined, traitName: string): ProviderPctMap | null;
/**
 * Backwards-compatible cache-first helper for inline-card social proof callers.
 *
 * Reads the persisted provider percentage map synchronously using the current site cloud id, then
 * starts a background refresh for subsequent mounts. The async result intentionally does not affect
 * the current call site, matching the warm-cache-only rendering contract.
 */
export declare function getCachedProviderPctMapAndRefresh(traitName: string): ProviderPctMap | null;
