import type { BrowserContext } from 'playwright'; export interface CaptureLook { bloom: { intensity: number; nightIntensity: number; }; exposure: { min: number; max: number; }; } /** * The look the QA capture renders under. Bloom is off (it is what turned white cloth into a glowing silhouette) and the * exposure is pinned at 0.6, which is what the world's own auto-exposure settles on at the spawn (measured on the VRPC * RTX 4080, front frame mean luma 174.8 pinned vs 177.0 adapted), so the walk frames keep the exposure of the static ones. */ export declare const CAPTURE_LOOK: CaptureLook; /** `HELIX_VQA_CAPTURE_LOOK=off` renders under the world's own look (the pre-fix behaviour); a JSON object overrides blocks. */ export declare function resolveCaptureLook(env?: NodeJS.ProcessEnv): CaptureLook | null; /** * Runs in EVERY frame before any page script (the world is an iframe). It wraps `fetch` so the one request for * `helix.visuals.json` is answered with the world's own document plus the capture look. No network interception: a * Playwright route on a cross-origin iframe stalled the world's load on the CDP-attached Windows Chrome. */ export declare function captureLookInit(look: CaptureLook): void; export interface CaptureLookHandle { look: CaptureLook | null; /** Read after the world presented: `applied` 0 means the world never asked for `helix.visuals.json`, i.e. the look did NOT apply. */ facts(frame?: { evaluate: (fn: () => unknown) => Promise; } | null): Promise>; } /** Install on a QA browser context before any navigation. */ export declare function installCaptureLook(ctx: BrowserContext, look?: CaptureLook | null): Promise;