import { AccessTokensApi } from './api/access-tokens.js'; import { AttachmentsApi } from './api/attachments.js'; import { CommentsApi } from './api/comments.js'; import { LabelsApi } from './api/labels.js'; import { PagesApi } from './api/pages.js'; import { SearchApi } from './api/search.js'; import { SpacesApi } from './api/spaces.js'; import { UsersApi } from './api/users.js'; import type { ConfluenceClientConfig } from './types/index.js'; /** * Confluence Server/Data Center API client. * Provides typed methods for interacting with Confluence Server REST API. * * Uses a facade pattern - all methods are organized by domain: * - client.spaces - Space methods (list, get) * - client.pages - Page methods (get, create, update, delete, getChildren, getHistory) * - client.search - Search methods (query) * - client.comments - Comment methods (get, add) * - client.labels - Label methods (get, add) * - client.attachments - Attachment methods (get, upload, download, delete) * * @example * const client = new ConfluenceClient({ * baseUrl: 'https://confluence.example.com', * token: process.env.CONFLUENCE_TOKEN, * }); * * // Search pages * const result = await client.search.query({ cql: 'space = DOCS AND type = page' }); * * // Get a page with wiki markup * const page = await client.pages.get({ pageId: '12345' }); */ export declare class ConfluenceClient { /** Space-related API methods */ readonly spaces: SpacesApi; /** Page/content API methods */ readonly pages: PagesApi; /** CQL search API methods */ readonly search: SearchApi; /** Comment API methods */ readonly comments: CommentsApi; /** Label API methods */ readonly labels: LabelsApi; /** Attachment API methods */ readonly attachments: AttachmentsApi; /** User API methods (me/get/search) */ readonly users: UsersApi; /** * Access Tokens API — manage Personal Access Tokens. * Methods take `username` + `password` per call; the bearer `token` in the * client config is not used by this API. */ readonly accessTokens: AccessTokensApi; constructor(config: ConfluenceClientConfig); /** * Test connectivity to the Confluence server. */ testConnection(): Promise<{ success: boolean; error?: string; }>; } //# sourceMappingURL=client.d.ts.map