import type { VersionSource } from "./types.js"; export type FetchImpl = typeof fetch; export interface GithubReleasesOptions { allowPrerelease?: boolean; /** Strip a prefix from tag_name before returning, e.g. "v" → "1.2.3". */ tagPrefix?: string; /** GitHub personal access token (Authorization: Bearer …) for higher rate limit. */ token?: string; /** Override fetch for tests. Defaults to globalThis.fetch. */ fetchImpl?: FetchImpl; /** Per-request timeout in ms. Default 10000. */ timeoutMs?: number; } /** * Version source backed by the GitHub releases REST API. Fetches the * 5 most recent releases, filters drafts and (optionally) prereleases, * and returns the newest stable tag_name. Strips an optional prefix * (typically "v") so the result is comparable via compareVersions(). */ export declare function githubReleases(repo: string, options?: GithubReleasesOptions): VersionSource; export interface DockerHubTagsOptions { filter?: (tag: string) => boolean; fetchImpl?: FetchImpl; timeoutMs?: number; } /** * Version source backed by the Docker Hub v2 tags API. Returns the * first tag matching the filter (default: anything that parses as * a semver). Useful for images that don't have GitHub releases. */ export declare function dockerHubTags(image: string, options?: DockerHubTagsOptions): VersionSource; //# sourceMappingURL=sources.d.ts.map