import { BaseApi } from './base.js'; import type { CommitsResponse, GetCommitParams, ListCommitsParams, RestCommit } from '../types/commit.js'; import type { ChangesResponse, DiffResponse } from '../types/pull-request.js'; import type { GetCommitChangesParams, GetCommitDiffParams } from '../types/repository.js'; export declare class CommitsApi extends BaseApi { /** * List commit history on a ref, optionally scoped by path or range. */ list(params: ListCommitsParams): Promise; /** * Get metadata for a single commit. The `commitId` can be a hash or any ref. */ get(params: GetCommitParams): Promise; /** * List files changed in a specific commit. (Moved from RepositoriesApi.getCommitChanges.) */ getChanges(params: GetCommitChangesParams): Promise; /** * Get the diff for a specific commit. (Moved from RepositoriesApi.getCommitDiff.) */ getDiff(params: GetCommitDiffParams): Promise; } //# sourceMappingURL=commits.d.ts.map