import { BaseApi } from './base.js'; import type { BranchesResponse, DeleteAfterMergeSetting, DeleteBranchParams, GetDeleteAfterMergeSettingParams, ListBranchesParams } from '../types/branch.js'; import type { BitbucketClientConfig } from '../types/common.js'; export declare class BranchesApi extends BaseApi { /** * Secondary axios client for the branch-utils plugin endpoints. These live * under /rest/branch-utils/latest, separate from the main /rest/api/latest * surface used by `this.client`. */ private readonly branchUtilsClient; constructor(config: BitbucketClientConfig); /** * List branches in a repository with optional filters. */ list(params: ListBranchesParams): Promise; /** * Delete a branch via the branch-utils plugin. Returns nothing on success * (204). Fails with 400 if the ref is the default branch, has open pull * requests pointing at it, or otherwise cannot be removed. */ delete(params: DeleteBranchParams): Promise; /** * Read the effective "delete source branch on merge" setting for a repo. * Inherits from the project when no repo-level override exists. Used by * callers (e.g. CLIs) that want to replicate the Bitbucket UI behavior of * auto-deleting the source branch after a successful merge, since the merge * REST endpoint itself does not honor this setting server-side. */ getDeleteAfterMergeSetting(params: GetDeleteAfterMergeSettingParams): Promise; } //# sourceMappingURL=branches.d.ts.map