import { ITGitRequestConfig } from '..'; import { ICommit, IFileDiff, ProjectId } from '../base'; export type ICompareCommits = ( params: { id: ProjectId; from: string; to: string; straight?: boolean; }, requestOptions?: ITGitRequestConfig, ) => Promise; export type ICompareChangedFilesList = ( params: { id: ProjectId; from: string; to: string; straight?: boolean; calc_lines?: boolean; page?: number; per_page?: number; path?: string; }, requestOptions?: ITGitRequestConfig, ) => Promise; export interface ICompareChangedFiles { ( params: { id: ProjectId; from: string; to: string; straight?: boolean; page?: number; per_page?: number; }, requestOptions?: ITGitRequestConfig, ): Promise; list: ICompareChangedFilesList; } export interface ICompare { ( params: { id: ProjectId; from: string; to: string; }, requestOptions?: ITGitRequestConfig, ): Promise<{ commit: ICommit; commits: ICommit[]; diffs: IFileDiff[]; compare_timeout: boolean; compare_same_ref: boolean; over_flow: boolean; files_total: number; commits_total: number; }>; commits: ICompareCommits; changed_files: ICompareChangedFiles; }