import type { ApiContext } from "./context.js"; export interface SearchParams { query: string; project?: string; repository?: string; limit?: number; start?: number; } export interface SearchResult { values: Record[]; isLastPage: boolean; count?: number; nextStart?: number; } export declare function searchApi(ctx: ApiContext): { /** Search file contents. */ code(params: SearchParams): Promise; /** * Search file names. Bitbucket has no separate endpoint for this: quoting * the whole query is what turns a content search into a filename search. */ files(params: SearchParams): Promise; }; export type SearchApi = ReturnType;