import type { BaseResourceOptions } from '@gitbeaker/requester-utils'; import { ResourcePushRules } from '../templates'; import type { CreateAndEditPushRuleOptions, PushRuleSchema } from '../templates/ResourcePushRules'; import type { GitlabAPIResponse, ShowExpanded, Sudo } from '../infrastructure'; export interface GroupPushRules extends ResourcePushRules { create( groupId: string | number, options?: CreateAndEditPushRuleOptions & Sudo & ShowExpanded, ): Promise>; edit( groupId: string | number, options?: CreateAndEditPushRuleOptions & Sudo & ShowExpanded, ): Promise>; remove( groupId: string | number, options?: Sudo & ShowExpanded, ): Promise>; show( groupId: string | number, options?: Sudo & ShowExpanded, ): Promise>; } export class GroupPushRules extends ResourcePushRules { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('groups', options); } }