/** The part of a fetch response the starter reads. The global `fetch` fits. */ export interface ResponseLike { ok: boolean; status: number; json(): Promise; text(): Promise; } export type FetchLike = (url: string, init?: { headers?: Record; signal?: AbortSignal; }) => Promise; export declare function isStableTag(tag: string): boolean; /** Orders stable tags by version number. */ export declare function compareTags(a: string, b: string): number; /** The highest stable tag in the list, or null when there is none. */ export declare function highestStableTag(names: readonly string[]): string | null; /** The image tag of a release tag: v2.0.0 becomes 2.0.0. */ export declare function imageTag(ref: string): string; /** * The newest release tag: the latest GitHub release when its tag is a stable vX.Y.Z, otherwise the * highest stable vX.Y.Z tag of the repository. */ export declare function findLatestRelease(fetchFn: FetchLike, userAgent: string): Promise;