import type { AzureDevOpsClient } from '../azure-devops-client.js'; export declare class WikiService { private readonly client; constructor(client: AzureDevOpsClient); /** * Convert a git-backed wiki path to a display wiki path. * Git paths use hyphens for spaces and %2D for literal dashes. * ONLY use this for paths returned by the wiki search API (git paths). */ private convertGitPathToWikiPath; /** * Light normalization for user-provided wiki paths. * Only strips .md extension — does NOT convert dashes to spaces. */ private normalizePagePath; private countOccurrences; private getMatchLocations; private generateUnifiedDiff; private escapeRegExp; private truncate; getWikis(project: string): Promise; searchWikiPages(searchText: string, project?: string, maxResults?: number): Promise; getWikiPage(project: string, wikiId: string, pagePath: string, includeContent?: boolean, recursionLevel?: 'none' | 'oneLevel' | 'full'): Promise; getWikiPageById(project: string, wikiId: string, pageId: number, includeContent?: boolean, recursionLevel?: 'none' | 'oneLevel' | 'full'): Promise; /** * Get the page hierarchy under a path (paths + ids, no content) — * tree enumeration without pulling every page body. */ getWikiPageTree(project: string, wikiId: string, pagePath?: string, depth?: 'oneLevel' | 'full'): Promise; createWikiPage(project: string, wikiId: string, pagePath: string, content: string): Promise; updateWikiPage(project: string, wikiId: string, pagePath: string, content: string, version?: string): Promise; strReplaceWikiPage(project: string, wikiId: string, pagePath: string, oldStr: string, newStr: string, replaceAll?: boolean, _description?: string): Promise; deleteWikiPage(project: string, wikiId: string, pagePath: string): Promise; saveWikiPageToFile(project: string, wikiId: string, pagePath: string, outputPath?: string): Promise<{ filePath: string; pagePath: string; project: string; wikiId: string; }>; uploadWikiPageFromFile(filePath: string): Promise<{ filePath: string; pagePath: string; project: string; wikiId: string; id?: number; }>; getWikiRepositoryId(project: string, wikiId: string): Promise; downloadWikiAttachment(project: string, wikiId: string, attachmentPath: string, outputDir?: string): Promise<{ filePath: string; fileName: string; size: number; attachmentPath: string; }>; downloadWikiPageAttachments(project: string, wikiId: string, pagePath: string, outputDir?: string): Promise<{ pagePath: string; totalFound: number; downloaded: number; files: Array<{ filePath: string; fileName: string; size: number; attachmentRef: string; }>; errors: Array<{ attachmentRef: string; error: string; }>; }>; } //# sourceMappingURL=wiki-service.d.ts.map