/** Cloudflare Web Analytics snippet for a given zone token. */
export declare function renderBeacon(token: string): string;
/**
 * Inject the CF Web Analytics beacon into an HTML page. Idempotent: any existing
 * agents-share analytics block is removed first. The snippet is appended before
 * `</body>` when present, otherwise before `</head>`, otherwise prepended to the
 * document so it still loads.
 */
export declare function injectAnalyticsBeacon(html: string, token: string): string;
/** True if the share config has a non-empty analytics token. */
export declare function analyticsEnabled(cfg: {
    analyticsToken?: string;
} | undefined | null): boolean;
