import { type HttpClientOptions, type HttpClients } from "./http/client.js"; import { ApiCache } from "./http/cache.js"; import type { ApiDefaults } from "./context.js"; import { type BranchesApi } from "./branches.js"; import { type BuildStatusApi } from "./build-status.js"; import { type CommentsApi } from "./comments.js"; import { type CommitCommentsApi } from "./commit-comments.js"; import { type CommitsApi } from "./commits.js"; import { type DeploymentsApi } from "./deployments.js"; import { type DefaultReviewersApi } from "./default-reviewers.js"; import { type EmoticonsApi } from "./emoticons.js"; import { type ForksApi } from "./forks.js"; import { type HooksApi } from "./hooks.js"; import { type SshKeysApi, type GpgKeysApi } from "./keys.js"; import { type InsightsApi } from "./insights.js"; import { type LabelsApi } from "./labels.js"; import { type MergeChecksApi } from "./merge-checks.js"; import { type ReviewerGroupsApi } from "./reviewer-groups.js"; import { type ProjectsApi } from "./projects.js"; import { type PullRequestsApi } from "./pull-requests.js"; import { type RepositoriesApi } from "./repositories.js"; import { type SearchApi } from "./search.js"; import { type WebhooksApi } from "./webhooks.js"; import { type SecretScanningApi } from "./secret-scanning.js"; import { type ServerApi } from "./server-info.js"; import { type TagsApi } from "./tags.js"; import { type UsersApi } from "./users.js"; export interface BitbucketClientOptions extends HttpClientOptions { /** Project key used whenever an operation omits `project`. */ defaultProject?: string; /** How long cached reads stay fresh. Defaults to 5 minutes. */ cacheTtlMs?: number; /** Transport seam. Defaults to ky instances built from these options. */ http?: HttpClients; /** Cache seam. Defaults to a fresh cache using `cacheTtlMs`. */ cache?: ApiCache; } /** * Entry point to the Bitbucket Server REST API. Credentials and defaults are * bound once; operations are grouped into namespaces and take a single params * object. */ export interface BitbucketClient { readonly http: HttpClients; readonly cache: ApiCache; readonly defaults: ApiDefaults; readonly branches: BranchesApi; readonly buildStatus: BuildStatusApi; readonly comments: CommentsApi; readonly commitComments: CommitCommentsApi; readonly commits: CommitsApi; readonly defaultReviewers: DefaultReviewersApi; readonly deployments: DeploymentsApi; readonly emoticons: EmoticonsApi; readonly forks: ForksApi; readonly gpgKeys: GpgKeysApi; readonly hooks: HooksApi; readonly insights: InsightsApi; readonly labels: LabelsApi; readonly mergeChecks: MergeChecksApi; readonly projects: ProjectsApi; readonly pullRequests: PullRequestsApi; readonly repositories: RepositoriesApi; readonly reviewerGroups: ReviewerGroupsApi; readonly search: SearchApi; readonly secretScanning: SecretScanningApi; readonly server: ServerApi; readonly sshKeys: SshKeysApi; readonly tags: TagsApi; readonly webhooks: WebhooksApi; readonly users: UsersApi; } export declare function createBitbucketClient(options: BitbucketClientOptions): BitbucketClient;