import { BaseResourceOptions } from '@gitbeaker/requester-utils' ; import { ResourceDiscussions } from '../templates' ; import { DiscussionSchema } from '../templates/types' ; import { BaseRequestOptions , PaginatedRequestOptions , Sudo , CamelizedRecord , } from '../infrastructure' ; export interface ProjectSnippetDiscussions < C extends boolean = false > extends ResourceDiscussions < C > { addNote ( projectId , snippetId , discussionId , noteId , body , options ? ) : Promise < CamelizedRecord < C , DiscussionSchema > > ; all ( projectId , issueId , options ? ) : Promise < CamelizedRecord < C , DiscussionSchema > [ ] > ; create ( projectId , snippetId , body , options ? ) : Promise < CamelizedRecord < C , DiscussionSchema > > ; editNote ( projectId , snippetId , discussionId , noteId , options ) : Promise < CamelizedRecord < C , DiscussionSchema > > ; removeNote ( projectId , snippetId , discussionId , noteId , options ? ) : Promise < void > ; show ( projectId , snippetId , discussionId , options ? ) : Promise < CamelizedRecord < C , DiscussionSchema > > ; } export class ProjectSnippetDiscussions < C extends boolean = false > extends ResourceDiscussions < C > { constructor ( options ) { super ( 'projects' , 'snippets' , options ) ; } }