declare const FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION: 1; declare const FARM_PRODUCTION_SITE_TELEMETRY_EVENT_TYPE: "production_site_active"; declare const FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME: "@farm.js/core"; declare const FARM_PRODUCTION_SITE_ATTESTATION_PATH: "/.well-known/farm-telemetry"; declare const FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE: "production_site_attestation"; interface FarmProductionSiteTelemetryPayload { schemaVersion: typeof FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION; eventType: typeof FARM_PRODUCTION_SITE_TELEMETRY_EVENT_TYPE; siteUrl: string; packageName: typeof FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME; packageVersion: string; renderer: string; deployTarget: string; } interface FarmProductionSiteAttestation { schemaVersion: typeof FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION; eventType: typeof FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE; packageName: typeof FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME; packageVersion: string; renderer: string; deployTarget: string; } interface FarmProductionSiteReporterOptions { renderer: string; deployTarget?: string; endpoint?: string; fetch?: typeof fetch; now?: () => number; reportIntervalMs?: number; retryIntervalMs?: number; } interface FarmProductionSiteReporter { handleAttestation(request: Request): Response | null; report(requestUrl: string | URL, waitUntil?: (promise: Promise) => void): void; } /** * Reduce an automatically observed request URL to a public HTTPS origin. * Request paths, query strings, hashes, and credentials are never returned. */ declare function detectFarmProductionSiteOrigin(value: string | URL): string | undefined; /** Normalize and validate the origin-only value accepted by the ingestion service. */ declare function normalizeFarmProductionSiteOrigin(value: string): string | undefined; declare function createFarmProductionSiteReporter(options: FarmProductionSiteReporterOptions): FarmProductionSiteReporter; export { FARM_PRODUCTION_SITE_ATTESTATION_EVENT_TYPE, FARM_PRODUCTION_SITE_ATTESTATION_PATH, FARM_PRODUCTION_SITE_TELEMETRY_EVENT_TYPE, FARM_PRODUCTION_SITE_TELEMETRY_PACKAGE_NAME, FARM_PRODUCTION_SITE_TELEMETRY_SCHEMA_VERSION, type FarmProductionSiteAttestation, type FarmProductionSiteReporter, type FarmProductionSiteTelemetryPayload, createFarmProductionSiteReporter, detectFarmProductionSiteOrigin, normalizeFarmProductionSiteOrigin };