import { BaseApi } from './base.js'; import type { ConfluencePage, ConfluencePaginatedResponse, ConfluenceHistoryVersion, GetPageParams, CreatePageParams, UpdatePageParams, DeletePageParams, GetChildrenParams, GetPageHistoryParams } from '../types/index.js'; /** * Page/content API methods */ export declare class PagesApi extends BaseApi { /** * Get a page by ID. * By default expands body.storage, version, and space. */ get(params: GetPageParams): Promise; /** * Create a new page. * Content format defaults to storage (Confluence XHTML). Use 'wiki' for wiki markup. */ create(params: CreatePageParams): Promise; /** * Update a page. * Content format defaults to storage (Confluence XHTML). Use 'wiki' for wiki markup. * Version number must be incremented from current. */ update(params: UpdatePageParams): Promise; /** * Delete a page. */ delete(params: DeletePageParams): Promise; /** * Get child pages of a page. */ getChildren(params: GetChildrenParams): Promise>; /** * Get page version history. * * On Confluence Server/DC the paginated version list lives under * `/rest/experimental/content/{id}/version` — the `/rest/api` variant 404s * (verified live 2026-06-10). The absolute URL below escapes the client's * `/rest/api` baseURL while reusing its auth and interceptors. */ getHistory(params: GetPageHistoryParams): Promise>; /** * Build the body payload for a given content format. */ private buildBody; } //# sourceMappingURL=pages.d.ts.map