import type { PaginatedResponse } from './common.js'; import type { RestCommit } from './pull-request.js'; export type MergesFilter = 'include' | 'exclude' | 'only'; /** * Parameters for CommitsApi.list — list commit history on a ref. */ export interface ListCommitsParams { projectKey: string; repositorySlug: string; /** Restrict to commits touching this path */ path?: string; /** Range start (commit ID or ref), exclusive */ since?: string; /** Range end (commit ID or ref), inclusive — or single ref to list commits reachable from */ until?: string; /** Merge commit handling */ merges?: MergesFilter; /** Track file renames (only meaningful with path) */ followRenames?: boolean; /** Tolerate missing since/until refs instead of 404 */ ignoreMissing?: boolean; /** Include commit/author totals */ withCounts?: boolean; start?: number; limit?: number; } /** * Parameters for CommitsApi.get — single-commit metadata. */ export interface GetCommitParams { projectKey: string; repositorySlug: string; /** Commit hash or any ref (branch/tag) */ commitId: string; /** Optional path to scope the returned commit info */ path?: string; } export type CommitsResponse = PaginatedResponse; export type { RestCommit }; //# sourceMappingURL=commit.d.ts.map