import type { AppActivateEvent, AppDeactivateEvent, AppInstallEvent, AppUninstallEvent, AppUpdateEvent, ShopAuthorizeEvent, BeforeRegistrationEvent } from "./registration.js"; import type { ShopInterface } from "./repository.js"; interface HookRegistry { onAuthorize: (event: ShopAuthorizeEvent) => Promise; onAppInstall: (event: AppInstallEvent) => Promise; onAppUninstall: (event: AppUninstallEvent) => Promise; onAppActivate: (event: AppActivateEvent) => Promise; onAppDeactivate: (event: AppDeactivateEvent) => Promise; onAppUpdate: (event: AppUpdateEvent) => Promise; onBeforeRegistrationEvent: (event: BeforeRegistrationEvent) => Promise; } export declare class Hooks { private eventListeners; hasListeners(event: keyof HookRegistry): boolean; on(event: keyof HookRegistry, cb: HookRegistry[keyof HookRegistry]): void; publish(event: keyof HookRegistry, ...args: Parameters[keyof HookRegistry]>): Promise; } export {}; //# sourceMappingURL=hooks.d.ts.map