import type { BaseResourceOptions } from '@gitbeaker/requester-utils'; import { ResourceTemplates } from '../templates'; import type { GitlabAPIResponse, PaginationRequestOptions, PaginationTypes, ShowExpanded, Sudo, } from '../infrastructure'; export interface LicenseTemplateSchema extends Record { key: string; name: string; nickname?: string; featured: boolean; html_url: string; source_url: string; description: string; conditions?: string[]; permissions?: string[]; limitations?: string[]; content: string; } export interface LicenseTemplates extends ResourceTemplates { all( options?: { popular?: boolean } & PaginationRequestOptions

& Sudo & ShowExpanded, ): Promise>; show( key: string | number, options?: { project?: string; fullName?: string } & Sudo & ShowExpanded, ): Promise>; } export class LicenseTemplates extends ResourceTemplates { constructor(options: BaseResourceOptions) { /* istanbul ignore next */ super('Licenses', options); } }