import type { Frame, Page } from 'playwright'; import type { RenderContext } from './harness'; import type { VisualQaAssert, VisualQaFrame } from './types'; export declare const WORLD_WALK_REVISION = "world-walk@1"; export declare const TRIAL_STORAGE_PREFIX = "helix:item-trial:v1:"; export interface WalkStageResult { frames: VisualQaFrame[]; asserts: VisualQaAssert[]; facts: Record; errors: string[]; fetchedAssets: string[]; renderer?: string | null; } /** The Try Now request that wears `itemId` in `slotId` on `baseId` (helixgame.com `UniversalItemTrialRequest`). */ export declare function trialDraftRequest(baseId: string, slotId: string, itemId: string, packageVersion?: string | null): Record; /** What helixgame.com stores for a `tryDraft` launch (`storeTrialLaunch`): bound to the signed-in account. */ export declare function storedTrialLaunch(actorId: string, request: Record): string; /** The add-on's slot on a base, from a `GET /universal-items//add-ons` page. */ export declare function slotIdFromAddOns(body: unknown, itemId: string): string | null; export interface WalkSessionInfo { baseModelUrl: string | null; addOn: { slotId: string; itemId: string; modelUrl: string | null; visualOps: unknown[]; } | null; addOns: number; } /** The parts of a Try Now session response the stage needs (never the token). */ export declare function walkSessionInfo(json: unknown, itemId: string | null): WalkSessionInfo; /** A refused draft session: the backend's message, never the body (a live session carries a token). */ export declare function describeRefusal(status: number, text: string): string; export declare function fetchBytes(url: string): Promise; /** Find the item's slot on a base through the base's add-ons list (the same predicate the customiser uses). */ export declare function resolveSlotId(apiBase: string, baseId: string, itemId: string, title: string, slotType: string | null, token?: string | null): Promise; /** Wear the item on one base through a Try Now draft, walk it, measure it. Owns its own browser. */ export declare function runWearWalk(ctx: RenderContext, baseId: string, baseTitle: string): Promise; export interface WalkArgs { page: Page; frame: Frame; outDir: string; /** Frame/assert subject: the base id (wearables) or the avatar's own id. */ subject: string; subjectTitle: string; itemTitle: string; /** Scene names of the item's meshes (a name ending in `|` is a prefix: the composer's `compaddon:|`); empty for an * avatar (everything that is not the baked base body is its outfit). */ itemNames: string[]; /** The base (or avatar) model, for the master index of the body meshes. */ baseGlb: Uint8Array | null; /** 'wear': an item on a base; 'avatar': a whole avatar, its outfit = every drawn mesh that is not the baked base body. */ mode?: 'wear' | 'avatar'; log: (k: string, v: unknown) => void; } /** `walk` (default: Alt held, the engine's walk tier) or `run` (HELIX_VQA_WALK_GAIT=run, the default gait of a bare W). */ export declare function walkGait(env?: NodeJS.ProcessEnv): 'walk' | 'run'; /** Walk the presented player and measure it. Never throws: errors are returned. */ export declare function walkAndMeasure(a: WalkArgs): Promise>;