import type { ApiContext } from "./context.js"; import type { Paginated } from "./http/pagination.js"; export interface ListBranchRestrictionsParams { project?: string; repository: string; limit?: number; start?: number; } export interface ListBranchesParams { project?: string; repository: string; filterText?: string; limit?: number; start?: number; } export interface ListBranchesResult { branches: Paginated>; defaultBranch: Record | null; } export interface CreateBranchParams { project?: string; repository: string; branch: string; startPoint?: string; } export interface DeleteBranchParams { project?: string; repository: string; branch: string; } export declare function branchesApi(ctx: ApiContext): { /** * Branch permission restrictions. Repositories without the branch * permissions add-on answer 404, which reads as "no restrictions". */ listRestrictions({ project, repository, limit, start, }: ListBranchRestrictionsParams): Promise>>; list({ project, repository, filterText, limit, start, }: ListBranchesParams): Promise; create({ project, repository, branch, startPoint, }: CreateBranchParams): Promise>; delete({ project, repository, branch, }: DeleteBranchParams): Promise<{ deleted: true; branch: string; }>; }; export type BranchesApi = ReturnType;