import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { ResourceDeployTokens } from '../templates' ; import { DeployTokenScope , DeployTokenSchema } from '../templates/types' ; import { BaseRequestOptions , PaginatedRequestOptions , CamelizedRecord , Sudo , } from '../infrastructure' ; export interface ProjectDeployTokens < C extends boolean = false > extends ResourceDeployTokens < C > { add ( projectId , tokenName , tokenScopes , options ? ) : Promise < CamelizedRecord < C , DeployTokenSchema > > ; all ( options ? ) : Promise < CamelizedRecord < C , DeployTokenSchema > [ ] > ; remove ( projectId , tokenId , options ? ) : Promise < void > ; } export class ProjectDeployTokens < C extends boolean = false > extends ResourceDeployTokens < C > { constructor ( options ) { super ( 'projects' , options ) ; } }