/** Repo-relative path → file contents. */ export type RepoFiles = Map; /** Minimal reader for the ustar/pax archives GitHub serves; regular files only. */ export declare function parseTar(tar: Buffer): RepoFiles; /** GitHub tarballs nest everything under `-/`. */ export declare function stripTopDir(files: RepoFiles): RepoFiles; /** Downloads upstash/skills at its default branch. */ export declare function fetchSkillsRepo(): Promise; /** Files under `prefix/`, keyed by their path relative to it. */ export declare function subtree(files: RepoFiles, prefix: string): RepoFiles; /** * Replaces `dest` with exactly `files`, so files removed upstream do not linger. * `dest` is always a directory this CLI owns (named `upstash`). Every path is * checked and the tree is written to a staging directory first, then swapped * in through a backup, so a bad archive or a failed write or rename leaves the * previous install in place. */ export declare function writeTree(files: RepoFiles, dest: string): Promise; //# sourceMappingURL=repo.d.ts.map