import type { BranchUpgradeConfig } from '../../../../types';
import type { ChangeLogError, ChangeLogResult } from './types';
export declare abstract class ChangeLogSource {
    private platform;
    private datasource;
    private cacheNamespace;
    constructor(platform: 'bitbucket' | 'github' | 'gitlab', datasource: 'bitbucket-tags' | 'github-tags' | 'gitlab-tags');
    abstract getCompareURL(baseUrl: string, repository: string, prevHead: string, nextHead: string): string;
    abstract getAPIBaseUrl(config: BranchUpgradeConfig): string;
    getAllTags(endpoint: string, repository: string): Promise<string[]>;
    getChangeLogJSON(config: BranchUpgradeConfig): Promise<ChangeLogResult | null>;
    private findTagOfRelease;
    private getRef;
    private getCacheKey;
    getBaseUrl(config: BranchUpgradeConfig): string;
    getRepositoryFromUrl(config: BranchUpgradeConfig): string;
    protected hasValidToken(config: BranchUpgradeConfig): {
        isValid: boolean;
        error?: ChangeLogError;
    };
    protected shouldSkipPackage(config: BranchUpgradeConfig): boolean;
}
