/** * Fetch JSON from a URL with GitHub headers. * @param {string} url * @returns {Promise} */ export function fetchJson(url: string): Promise; /** * Get latest commit SHA from a specific branch. */ export function getLatestCommit(owner: any, repo: any, branch?: string): Promise<{ owner: any; repo: any; branch: string; sha: any; date: string; }>; /** * Get latest commit SHA from all branches and pick the latest. */ export function getLatestCommitAcrossBranches(owner: any, repo: any): Promise<{ owner: any; repo: any; branch: any; sha: any; date: any; }>; /** * Replace the branch or commit in a GitHub raw URL with the latest hash. */ export function replaceRawWithLatestHash(url: any, latestHash: any): string; /** * Resolve all package resolution updates. * Pure logic function for Jest testing. */ export function resolvePackageResolutionUpdates(resolutions: any, specialPackageOverrides?: any[]): Promise<({ skipped: boolean; currentPkgName: string; url: any; error: Error; failed?: undefined; new_url?: undefined; repo?: undefined; latest?: undefined; } | { skipped: boolean; currentPkgName: string; url: string; error: unknown; failed?: undefined; new_url?: undefined; repo?: undefined; latest?: undefined; } | { failed: boolean; currentPkgName: string; url: string; new_url: string; repo: import("git-command-helper").ParsedGitHubUrl; latest: { owner: any; repo: any; branch: any; sha: any; date: any; }; error: Error; skipped?: undefined; } | { currentPkgName: string; url: string; new_url: string; repo: import("git-command-helper").ParsedGitHubUrl; latest: { owner: any; repo: any; branch: any; sha: any; date: any; }; skipped?: undefined; error?: undefined; failed?: undefined; } | { failed: boolean; currentPkgName: string; url: string; repo: import("git-command-helper").ParsedGitHubUrl; error: unknown; skipped?: undefined; new_url?: undefined; latest?: undefined; })[]>; export { parseGitHubUrl }; import { parseGitHubUrl } from 'git-command-helper';