/** * Edge/cloud environment resolution. * * Prefers edge reporter metrics when available, falls back to cloud. */ import type { EnvConfig } from './environments.js'; /** Resolve whether to use edge or cloud metrics (global). */ export declare function resolveMetricsEnv(env: EnvConfig, timeoutMs?: number): Promise<'edge' | 'cloud'>; /** * Resolve whether to use edge or cloud metrics for specific filters. * * `timeoutMs` is accepted for API parity with resolveMetricsEnv but defaults to * the shared 30s backend-fetch budget on purpose: this is an edge/cloud * CLASSIFICATION probe, and a too-tight deadline that times out on a slow-but- * working backend would misclassify edge→cloud and silently empty the caller's * results. Correctness over a few seconds for a probe that is milliseconds on a * healthy backend. */ export declare function resolveMetricsEnvFiltered(env: EnvConfig, filters: Record, timeoutMs?: number): Promise<'edge' | 'cloud'>;