import { Http, HttpError } from '../../util/http'; import type { DatasourceApi, DigestConfig, GetReleasesConfig, RegistryStrategy, ReleaseResult } from './types'; export declare abstract class Datasource implements DatasourceApi { readonly id: string; protected constructor(id: string); caching: boolean | undefined; customRegistrySupport: boolean; defaultConfig: Record | undefined; defaultRegistryUrls?: string[] | (() => string[]); defaultVersioning?: string | undefined; registryStrategy: RegistryStrategy | undefined; protected http: Http; abstract getReleases(getReleasesConfig: GetReleasesConfig): Promise; getDigest?(config: DigestConfig, newValue?: string): Promise; handleHttpErrors(err: HttpError): void; protected handleGenericErrors(err: Error): never; }