import { BaseApi } from './base.js'; import type { PaginatedResponse } from '../types/common.js'; import type { GetAllUsersParams, GetUserProfileParams, RestUser } from '../types/user.js'; /** * Users API for Bitbucket Server. * Provides methods for user-related operations. */ export declare class UsersApi extends BaseApi { /** * Get a Bitbucket Server user profile by username */ getProfile(params: GetUserProfileParams): Promise; /** * Get the slug of the user the access token is authenticated as. * * Bitbucket DC has no `/myself` endpoint, but every authenticated response * sets the `X-AUSERNAME` header to the caller's slug. We probe a cheap * authenticated endpoint and read the header — one round-trip, no profile * payload. Use this when you only need the slug (e.g. to build a * `/users/{slug}` URL); call `getCurrentUser()` when you need the full * profile. */ getCurrentUserSlug(): Promise; /** * Get the profile of the user the access token is authenticated as. * * Two round-trips: one to read the slug from `X-AUSERNAME`, one to fetch * the profile by slug. */ getCurrentUser(): Promise; /** * Get all users, optionally filtered by search term */ getAll(params?: GetAllUsersParams): Promise>; } //# sourceMappingURL=users.d.ts.map