import { BaseApi } from './base.js'; import type { ConfluencePaginatedResponse, ConfluenceUser, ConfluenceUserSearchResult, GetConfluenceUserParams, GetCurrentConfluenceUserParams, SearchConfluenceUsersParams } from '../types/index.js'; /** * User-related API methods. * * Confluence DC has no `/myself` endpoint; the equivalent is * `/rest/api/user/current`. Lookups are split between `/user?username=X`, * `/user?key=X`, and CQL-driven search via `/search/user`. */ export declare class UsersApi extends BaseApi { /** * Get the currently authenticated user. */ getCurrentUser(params?: GetCurrentConfluenceUserParams): Promise; /** * Get a user by `username` or `userKey`. * * Exactly one of `username` / `userKey` must be supplied — Confluence rejects * requests with both or neither. */ getUser(params: GetConfluenceUserParams): Promise; /** * Search users by partial display-name match (or arbitrary CQL). * * Backed by `GET /rest/api/search?cql=...`. The `/rest/api/search/user` * variant documented for Confluence Cloud does NOT exist on Confluence DC * (verified 404 on 7.x). The generic `/search` endpoint returns the same * `{ user, title, excerpt, url }` envelope when the CQL targets `user.*` * predicates. * * When `cql` is not set, the client builds `user.fullname ~ ""` * from the `query` parameter. */ searchUsers(params: SearchConfluenceUsersParams): Promise>; } //# sourceMappingURL=users.d.ts.map