import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { BaseRequestOptions , PaginatedRequestOptions , CamelizedRecord , Sudo , } from '../infrastructure' ; import { ResourceLabels } from '../templates' ; import { LabelSchema } from '../templates/types' ; export interface Labels < C extends boolean = false > extends ResourceLabels < C > { all ( projectId , options ? ) : Promise < CamelizedRecord < C , LabelSchema > [ ] > ; create ( projectId , labelName , color , options ? ) : Promise < CamelizedRecord < C , LabelSchema > > ; edit ( projectId , labelId , options ? ) : Promise < CamelizedRecord < C , LabelSchema > > ; remove ( projectId , labelId , options ? ) : Promise < void > ; subscribe ( projectId , labelId , options ? ) : Promise < CamelizedRecord < C , LabelSchema > > ; unsubscribe ( projectId , labelId , options ? ) : Promise < CamelizedRecord < C , LabelSchema > > ; } export class Labels < C extends boolean = false > extends ResourceLabels < C > { constructor ( options ) { super ( 'projects' , options ) ; } }