/** * Feature flag + A/B test detector. * * Detects popular feature flag / experiment SDKs loaded on the page: * LaunchDarkly, Optimizely, Split.io, Unleash, GrowthBook, Statsig, Flagsmith, Amplitude Experiment. * * Also detects common A/B test patterns: data-testid attributes, gtm.js experiment layers, * Optimizely variation IDs, VWO, etc. * * Why: ZeTa needs to know when a page shows different content to different users * so test generation can account for variants and not generate flaky tests. */ import type { Page } from 'playwright'; export interface FeatureFlagInfo { sdk: string; confidence: 'high' | 'medium' | 'low'; details?: string; } export interface AbTestInfo { tool: string; experiments?: string[]; } export interface FeatureFlagDetectionResult { url: string; flagSdks: FeatureFlagInfo[]; abTools: AbTestInfo[]; hasAnyFlags: boolean; detectedAt: string; } export declare function detectFeatureFlags(page: Page, url: string): Promise;