/** * Minimal npm registry client for skill releases. HTTP is injectable so * hosts can add proxies/auth and tests can run offline. */ export type FetchLike = (url: string, init?: { headers?: Record; }) => Promise<{ ok: boolean; status: number; json(): Promise; arrayBuffer(): Promise; }>; export interface RegistryOptions { registryUrl?: string; fetchImpl?: FetchLike; } export interface PackumentVersion { version: string; dist: { tarball: string; integrity?: string; shasum?: string; }; } export interface Packument { name: string; 'dist-tags': Record; versions: Record; } export declare class RegistryClient { private readonly registryUrl; private readonly fetchImpl; constructor(options?: RegistryOptions); packument(pkg: string): Promise; tarball(url: string): Promise; }