import type { CliCredentials } from '../config'; /** * Fetches the signed client-delivery response for a published World build. * * WHY THIS EXISTS * * Launching a World is gated on a backend-signed delivery envelope: the desktop * shell verifies its ES256 countersignature before a single byte is fetched, and * the runtime refuses a launch whose command-line identity does not match it. * That is the right design, and it meant the only way to run a published World * was for a human to open the client and click. So every question that needs a * running World -- does the shader library open, does a UMG widget appear, did a * fix actually work -- was answerable only by asking someone to go and look. * * `HelixDesktop.WorldProbe` already drives the full production join path * headlessly, and takes the delivery response as a file. It had no way to get * one. This is that way. */ export type UnrealDeliveryOptions = { worldId: string; buildId: string; outPath: string; /** * Write the whole HTTP response verbatim instead of the `item` payload. * * The default is the payload because that is what every consumer wants: * `WorldBuildDeliveryVerifier.TryVerify` documents its input as "the raw * `item` object from the client delivery response", and WorldProbe hands it * the file contents unchanged. Writing the envelope by default would make the * command's output fail verification for a reason that reads like a bad * signature. */ raw?: boolean; }; export type UnrealDeliveryResult = { worldId: string; buildId: string; outPath: string; bytes: number; /** Read from the response for reporting only; never used to alter the file. */ signingKeyId: string | null; buildNumber: number | null; networkMode: string | null; }; export declare function deliveryPath(worldId: string, buildId: string): string; export declare function fetchUnrealDelivery(creds: CliCredentials, options: UnrealDeliveryOptions): Promise;