import { Storage } from '../git/storage'; import { Pr } from '../common'; import { BranchStatus } from '../../types'; export interface Config { baseBranch: string; baseCommitSHA: string; defaultBranch: string; fileList: any[]; has_issues: boolean; mergeMethod: string; owner: string; prList: Pr[]; repository: string; storage: Storage; bbUseDefaultReviewers: boolean; username: string; } export interface PagedResult { pagelen: number; size?: number; next?: string; values: T[]; } export interface RepoInfo { isFork: boolean; owner: string; mainbranch: string; mergeMethod: string; has_issues: boolean; } export declare type BitbucketBranchState = 'SUCCESSFUL' | 'FAILED' | 'INPROGRESS'; export interface BitbucketStatus { key: string; state: BitbucketBranchState; } export declare function repoInfoTransformer(repoInfoBody: any): RepoInfo; export declare const prStates: { open: string[]; notOpen: string[]; merged: string[]; closed: string[]; all: string[]; }; export declare const buildStates: Record; export declare function accumulateValues(reqUrl: string, method?: string, options?: any, pagelen?: number): Promise; export declare function isConflicted(files: any): boolean; export declare function prInfo(pr: any): Pr;