import { BaseApi } from './base.js'; import type { RestCommit } from '../types/pull-request.js'; import type { BrowseParams, BrowseResponse, EditFileParams, GetRawContentParams } from '../types/repository.js'; export declare class FilesApi extends BaseApi { /** * Browse repository contents at a given path (structured JSON response). * (Moved from RepositoriesApi.browse.) */ browse(params: BrowseParams): Promise; /** * Get raw content from repository. (Moved from RepositoriesApi.getRawContent.) */ getRawContent(params: GetRawContentParams): Promise; /** * Create or update a file on a branch and produce a new commit. * * Wraps PUT /projects/{projectKey}/repos/{repositorySlug}/browse/{path}, which * accepts multipart/form-data. The shared axios instance is bypassed because it * sets `Content-Type: application/json` — Bitbucket needs the multipart boundary. * * Pass `sourceCommitId` when updating an existing file (Bitbucket uses it for * conflict detection); omit it when creating a new file. Pass `sourceBranch` * to land the commit on a new branch forked from that ref. */ editFile(params: EditFileParams): Promise; } //# sourceMappingURL=files.d.ts.map