/** * Confluence Cloud REST API v2 client. * Uses basic auth with Atlassian API token. */ export interface Space { id: string; key: string; name: string; type: string; status: string; description?: string; } export interface Page { id: string; status: string; title: string; spaceId: string; parentId?: string; authorId: string; createdAt: string; version: { number: number; message?: string; createdAt: string; authorId?: string; }; body?: { storage?: { representation: string; value: string; }; atlas_doc_format?: { representation: string; value: string; }; }; _links?: { webui?: string; editui?: string; }; } export interface Comment { id: string; status: string; title: string; body?: { storage?: { representation: string; value: string; }; }; version: { number: number; createdAt: string; }; } export declare function listSpaces(limit?: number): Promise; export declare function getSpace(spaceIdOrKey: string): Promise; export declare function createSpace(key: string, name: string, description?: string): Promise; export declare function searchPages(query: string, spaceId?: string, limit?: number): Promise; export declare function getPage(pageId: string, includeBody?: boolean): Promise; export declare function getPageByTitle(spaceId: string, title: string): Promise; export declare function createPage(spaceId: string, title: string, body: string, parentId?: string): Promise; export declare function updatePage(pageId: string, title: string, body: string, versionNumber: number, versionMessage?: string): Promise; export declare function getPageComments(pageId: string, limit?: number): Promise; export declare function addPageComment(pageId: string, body: string): Promise; export declare function getWebUrl(page: Page): string;