import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { ResourceMembers } from '../templates' ; import { MemberSchema , IncludeInherited , AccessLevel } from '../templates/types' ; import { BaseRequestOptions , PaginatedRequestOptions , CamelizedRecord , Sudo , } from '../infrastructure' ; export interface ProjectMembers < C extends boolean = false > extends ResourceMembers < C > { add ( projectId , userId , accessLevel , options ? ) : Promise < CamelizedRecord < C , MemberSchema > > ; all ( projectId , options ? ) : Promise < CamelizedRecord < C , MemberSchema > [ ] > ; edit ( projectId , userId , accessLevel , options ? ) : Promise < CamelizedRecord < C , MemberSchema > > ; show ( projectId , userId , options ? ) : Promise < CamelizedRecord < C , MemberSchema > > ; remove ( projectId , userId , options ? ) : Promise < void > ; } export class ProjectMembers < C extends boolean = false > extends ResourceMembers < C > { constructor ( options ) { super ( 'projects' , options ) ; } }