import { HookEventType } from '../../common/enum/Hook.ts'; export interface PublishChangePayload { 'dist-tag'?: string; version: string; } export interface UnpublishChangePayload { 'dist-tag'?: string; version?: string; } export interface DistTagChangePayload { 'dist-tag': string; } export interface PackageOwnerPayload { maintainer: string; } export interface DeprecatedChangePayload { deprecated: string; } export declare class HookEvent { readonly changeId: string; readonly event: HookEventType; readonly fullname: string; readonly type: 'package'; readonly version: '1.0.0'; readonly change: T; readonly time: number; constructor(event: HookEventType, changeId: string, fullname: string, change: T); static createPublishEvent(fullname: string, changeId: string, version: string, distTag?: string): HookEvent; static createUnpublishEvent(fullname: string, changeId: string, version?: string, distTag?: string): HookEvent; static createOwnerEvent(fullname: string, changeId: string, maintainer: string): HookEvent; static createOwnerRmEvent(fullname: string, changeId: string, maintainer: string): HookEvent; static createDistTagEvent(fullname: string, changeId: string, distTag: string): HookEvent; static createDistTagRmEvent(fullname: string, changeId: string, distTag: string): HookEvent; static createDeprecatedEvent(fullname: string, changeId: string, deprecated: string): HookEvent; static createUndeprecatedEvent(fullname: string, changeId: string, deprecated: string): HookEvent; }