export declare class SkillApiError extends Error { } export interface SkillEntry { name: string; type?: string; description?: string; /** Path or absolute URL to the SKILL.md. */ url: string; /** `sha256:` over the exact SKILL.md bytes. */ digest?: string; } export declare function resolveBase(baseUrl?: string): string; export declare function fetchSkillIndex(baseUrl?: string): Promise; export declare function digestOf(bytes: Uint8Array): string; export interface FetchedSkill { entry: SkillEntry; /** The exact SKILL.md bytes, digest-verified against the index. */ bytes: Uint8Array; } /** * Fetch one skill's SKILL.md and verify it against the index digest. A * mismatch is refused outright - never serve bytes the index does not vouch * for. */ export declare function fetchSkill(name: string, baseUrl?: string): Promise;