import type { BaseResourceOptions } from '@gitbeaker/requester-utils'; import { ResourceWikis } from '../templates'; import type { WikiAttachmentSchema, WikiSchema } from '../templates/ResourceWikis'; import type { GitlabAPIResponse, OneOf, PaginationRequestOptions, PaginationTypes, ShowExpanded, Sudo, } from '../infrastructure'; export interface ProjectWikis extends ResourceWikis { all( projectId: string | number, options: { withContent: true } & Sudo & ShowExpanded & PaginationRequestOptions

, ): Promise>; all( projectId: string | number, options?: Sudo & ShowExpanded & PaginationRequestOptions

, ): Promise>; all( projectId: string | number, options?: { withContent?: boolean } & Sudo & ShowExpanded & PaginationRequestOptions

, ): Promise>; create( projectId: string | number, content: string, title: string, options?: { format?: string } & Sudo & ShowExpanded, ): Promise>; edit( projectId: string | number, slug: string, options?: OneOf<{ content: string; title: string }> & { format?: string } & Sudo & ShowExpanded, ): Promise>; remove( projectId: string | number, slug: string, options?: Sudo & ShowExpanded, ): Promise>; show( projectId: string | number, slug: string, options?: { renderHtml?: boolean; version?: string } & Sudo & ShowExpanded, ): Promise>; uploadAttachment( projectId: string | number, file: { content: Blob; filename: string }, options?: { branch?: string } & Sudo & ShowExpanded, ): Promise>; } export class ProjectWikis extends ResourceWikis { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('projects', options); } }