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 GroupWikis extends ResourceWikis { all( groupId: string | number, options: { withContent: true } & Sudo & ShowExpanded & PaginationRequestOptions

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

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

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