export declare const HD2D_ASSETS_TAG = "hd2d-assets-v2";
export declare const HD2D_CACHE_DIR: string;
export type Hd2dState = 'absent' | 'downloading' | 'ready' | 'error';
export interface Hd2dStatus {
    state: Hd2dState;
    received: number;
    total: number;
    error?: string;
}
/** Absolute cache path for a known asset, or null for anything not on the
 *  allow-list (defends the static route against path games). */
export declare function hd2dAssetPath(name: string): string | null;
export declare function hd2dStatus(): Hd2dStatus;
/** Resolve an outbound proxy: explicit config wins, then the standard env vars
 *  (which Node's global fetch ignores — the whole reason we hand-roll this). */
export declare function resolveHttpProxy(): string | undefined;
/** Idempotently kick off the asset download. Returns the current status
 *  immediately; callers poll `/api/game/status` for progress. */
export declare function startHd2dDownload(): Hd2dStatus;
//# sourceMappingURL=hd2d-assets.d.ts.map