import { SKILL_BUNDLE_ERROR_CODES } from '../_vendored-contracts/skill-distribution.js'; import type { SkillInstallErrorCode } from '../_vendored-contracts/skill-distribution.js'; export interface BundleFetchResult { tmpPath: string; version: string; checksumSha256: string; manifestVersion: string; } export interface FetchError { code: SkillInstallErrorCode; message: string; details?: Record; } /** * Fetch bundle tarball from brain and stream to tmpPath. * Returns version + checksum from response headers. * Throws FetchError-shaped object on failure. */ export declare function fetchBundle(opts: { apiBaseUrl: string; agentToken: string; slug: string; version?: string; tmpPath: string; }): Promise; /** * Compute SHA-256 hex of a file. */ export declare function computeFileSha256(filePath: string): Promise; /** * Verify sha256 of tmpPath matches expected. * Returns true if match, false if mismatch. */ export declare function verifyChecksum(filePath: string, expected: string): Promise; /** * Delete tmp file silently (cleanup). */ export declare function deleteTmpFile(filePath: string): void; export { SKILL_BUNDLE_ERROR_CODES }; //# sourceMappingURL=bundle-fetcher.d.ts.map