export interface Config { datasource?: string; depName?: string; lookupName?: string; registryUrls?: string[]; } export declare type DigestConfig = Config; interface ReleasesConfigBase { compatibility?: Record; npmrc?: string; registryUrls?: string[]; } export interface GetReleasesConfig extends ReleasesConfigBase { lookupName: string; } export interface GetPkgReleasesConfig extends ReleasesConfigBase { datasource: string; depName: string; lookupName?: string; versioning?: string; } export declare function isGetPkgReleasesConfig(input: any): input is GetPkgReleasesConfig; export interface Release { changelogUrl?: string; gitRef?: string; isDeprecated?: boolean; releaseTimestamp?: any; version: string; newDigest?: string; } export interface ReleaseResult { sourceDirectory?: string; latestVersion?: string; changelogUrl?: string; dependencyUrl?: string; deprecationMessage?: string; display?: string; dockerRegistry?: string; dockerRepository?: string; group?: string; homepage?: string; name?: string; pkgName?: string; releases: Release[]; sourceUrl?: string; tags?: string[]; versions?: any; } export interface Datasource { id: string; getDigest?(config: DigestConfig, newValue?: string): Promise; getReleases(config: GetReleasesConfig): Promise; defaultRegistryUrls?: string[]; appendRegistryUrls?: string[]; defaultConfig?: object; } export declare class DatasourceError extends Error { err: Error; datasource?: string; lookupName?: string; constructor(err: Error); } export {};