/** * Remote registry client. * * Local registry behavior remains the default. These helpers are opt-in and * read from SKILLS_API_URL or config.apiUrl so private SaaS products can expose * a compatible registry API without hard-coding any SaaS details upstream. */ import { type SkillsConfig } from "./config.js"; import type { SkillMeta } from "./registry.js"; export interface RemoteRegistryOptions { apiUrl?: string; endpoint?: string; timeoutMs?: number; authToken?: string | null; fetchImpl?: (input: string | URL | Request, init?: RequestInit) => Promise; } export declare function getConfiguredApiUrl(config?: SkillsConfig, env?: Record): string | undefined; export declare function buildSkillsApiUrl(apiUrl: string, endpoint?: string): string; export declare function parseRemoteRegistryPayload(payload: unknown): SkillMeta[]; export declare function parseRemoteSkillPayload(payload: unknown): SkillMeta; export declare function loadRemoteRegistry(options?: RemoteRegistryOptions): Promise; export declare function loadRemoteSkill(name: string, options?: RemoteRegistryOptions): Promise;