/** * ExploreChimp local runs (when `EXPLORECHIMP_ENABLED`): page instrumentation + analyze API via Featureservice. * Wired automatically by `installTrueCoverage` / `installTestChimp` — do not import this module from app code. * With ExploreChimp on, call markers via the Playwright fixture: `test('…', async ({ markScreenState }) => { … })`. * Env: TESTCHIMP_BACKEND_URL, TESTCHIMP_API_KEY, TESTCHIMP_BATCH_INVOCATION_ID (exploration id). * Branch for analyze payloads: every `POST .../analyze_explorechimp_data_sources` body includes `branchName` * from {@link getBranchName} — set **`TESTCHIMP_BRANCH_NAME`** (preferred) or **`TESTCHIMP_BRANCH`** locally so * the server can resolve `branch_id` on explorations and bugs (CI git envs are used when unset). * Optional: EXPLORECHIMP_SOURCES_TO_ANALYZE, EXPLORECHIMP_REQUEST_REGEX_TO_ANALYZE (required when NETWORK is listed), * EXPLORECHIMP_LONG_TASK_THRESHOLD_MS (default 50; matches scriptservice watcher long-task gate). * DOM/axe payload caps: EXPLORECHIMP_DOM_MAX_CHARS (default 32000), EXPLORECHIMP_AXE_MAX_VIOLATIONS (default 25), * EXPLORECHIMP_AXE_MAX_NODES_PER_VIOLATION (default 8). */ import { DataSourceEnum } from './agents-explorechimp-json'; import { type FixtureKey, type RunPlatform } from '../project-type'; export { DataSourceEnum }; export type { AnalyzeDataSourcesRequest, ApiRequestItemReference, ApiRequestReference, ApiRequestsPayload, ArtifactInteractionLatencyBreakdown, ArtifactReference, AxeViolationReference, Bug, BoundingBox, ConsoleLogEntry, ConsoleLogReference, ConsoleLogsPayload, DataSource, DomElementReference, DomSnapshotPayload, ExploreChimpStepArtifactPayload, InteractionLatencyEntry, LayoutShiftElement, LongTaskDetail, MetricsPayload, MetricsReference, RequestResponsePair, ResourceTimingEntry, ScreenState, ScreenshotReference, TrimmedHtmlElement, } from './agents-explorechimp-json'; type ExploreChimpTarget = Record & { on?: (event: string, cb: (...args: any[]) => void) => void; screenshot?: (opts?: Record) => Promise; waitForLoadState?: (state: string, opts?: Record) => Promise; content?: () => Promise; addInitScript?: (...args: any[]) => Promise; evaluate?: (fn: (arg: A) => T, arg: A) => Promise; }; export interface ExploreChimpPageMeta { journeyExecutionId: string; journeyId: string; testId: string; /** Ingest-aligned tuple; featureservice resolves backend SmartTest id (see agents.proto resolution_*). */ analyzeResolutionPayload: { resolutionFolderPath: string; resolutionFileName: string; resolutionSuitePath: string[]; resolutionTestName: string; }; /** Playwright testInfo.retry — used with testId for stable analytics step ids. */ testRetry: number; projectRootDir: string; /** From `testInfo.project.use.platform` (ios/android) or web when omitted. */ platform: RunPlatform; } export declare function isExploreChimpEnabled(): boolean; export declare function parseExploreChimpSources(): Set; export declare function attachExploreChimpInstrumentation(page: ExploreChimpTarget, opts: { recordNetwork: boolean; networkRegex: RegExp | null; }): void; export declare function applyExploreChimpFixture(test: any, uiFixture: FixtureKey): any; /** @deprecated Use {@link applyExploreChimpFixture} */ export declare const applyExploreChimpPageFixture: typeof applyExploreChimpFixture; /** * ExploreChimp path for screen markers; invoked by the `markScreenState` fixture (not directly from specs). */ export declare function runExploreChimpMarkScreenState(page: unknown, screenName: string, stateName?: string): Promise; //# sourceMappingURL=index.d.ts.map