import type { BitbucketClientConfig } from '../types/common.js'; import type { CodeSearchParams, CodeSearchResponse } from '../types/search.js'; /** * Search API — wraps Bitbucket's search REST plugin * (`POST /rest/search/latest/search`). * * Lives under a different base path (`/rest/search/latest`) than the core REST * API, so it owns its own axios instance (same pattern as `BuildsApi` / * `AccessTokensApi`). */ export declare class SearchApi { private readonly client; constructor(config: BitbucketClientConfig); /** * Full-text code search across every repository the token can read. * * Pagination is non-standard for this endpoint: the page offset rides inside * `entities.code.start` (not a top-level query param) and the page size is * `limits.primary`. The `secondary` limit caps secondary-entity results and * has no effect on a code-only search, so we mirror it to `primary` to keep * the body well-formed. The response's `code.nextStart` is the offset to feed * back as `start` for the next page. */ searchCode(params: CodeSearchParams): Promise; } //# sourceMappingURL=search.d.ts.map