import type { ClusterVariant } from './types.js'; /** Options for fetching cluster templates. */ export interface FetchOptions { /** Cluster variant to extract from the tarball. */ variant: ClusterVariant; /** Git ref (branch, tag, or commit SHA) to fetch. Defaults to `'main'`. */ ref?: string; /** GitHub token for authorization. If omitted, requests are unauthenticated. */ token?: string | null; /** When true, bypass the local cache and re-download. */ refreshCache?: boolean; } /** * Fetch cluster base repo files from GitHub. * * Downloads the tarball for the given variant's base repo, extracts all files, * and caches them locally. Subsequent calls with the same repo and ref are * served from cache unless `refreshCache` is set. * * @returns Map from target path (e.g. `.devcontainer/Dockerfile`) to file content. * @throws {Error} On network failures or HTTP errors. */ export declare function fetchClusterTemplates(options: FetchOptions): Promise>; //# sourceMappingURL=template-fetcher.d.ts.map