import type { Stigmer } from "@stigmer/sdk";
import type { SkillFileEntry } from "../useSkillUpload";
/** Unpacked artifact: file entries for browsing + content map for reading. */
export interface UnpackedArtifact {
    readonly files: SkillFileEntry[];
    readonly contentMap: ReadonlyMap<string, string>;
}
/**
 * Fetch a skill artifact by storage key, unzip it, and return the file listing
 * with a content map. Shared by `useSkillArtifact` (single-version browser)
 * and `useSkillDiff` (two-version comparison).
 *
 * Throws on network or decompression errors — callers handle error state.
 */
export declare function fetchAndUnpackArtifact(stigmer: Stigmer, artifactStorageKey: string): Promise<UnpackedArtifact>;
//# sourceMappingURL=fetchAndUnpackArtifact.d.ts.map