import type { NetworkConfig, PromotionSelection } from './types'; /** FNV-1a 32-bit hash: stable across runtimes, good enough to seed a PRNG. */ export declare function hashString(value: string): number; /** Deterministic PRNG (mulberry32) so SSR picks are reproducible per bucket. */ export declare function mulberry32(seed: number): () => number; /** UTC day bucket so cached SSR HTML stays coherent within a day. */ export declare function utcDayBucket(date?: Date): string; export interface PromotionCandidates { siteIds: string[]; weights: Map; creatives: Map; } /** * Destination candidates for a render: sites with the destination role, * excluding the host itself, renormalizing the remaining weights * proportionally among the rest. */ export declare function promotionCandidates(config: NetworkConfig, hostSiteId: string): PromotionCandidates; export declare function totalWeight(candidates: PromotionCandidates): number; export interface PickPromotionInput { config: NetworkConfig; hostSiteId: string; slotId: string; timeBucket: string; /** Extra entropy for client-side substitutions; keep undefined for SSR. */ seedExtra?: string; locale: string; } /** * Pure weighted selection of a destination + creative for one slot render. * Deterministic given (config.version, slotId, timeBucket, seedExtra): the * same cached SSR HTML therefore serves the same creative within a bucket. * The creative follows the locale with Spanish fallback. */ export declare function pickPromotion(input: PickPromotionInput): PromotionSelection | null; /** Locale-aware creative choice with default-locale fallback. */ export declare function pickCreativeForLocale(creativeIds: string[], config: NetworkConfig, locale: string): string | undefined; /** * Expected impression share of each destination across the whole network * (before self-exclusion), for share-vs-target observability and tests. */ export declare function configuredShares(config: NetworkConfig): Map; //# sourceMappingURL=select.d.ts.map