import { ActionHandler, FilterHandler, InitHandler, ScheduleHandler } from './events'; import { ApiExtensionContext } from './extensions'; type HookExtensionContext = ApiExtensionContext & { emitter: any; }; type RegisterFunctions = { filter: (event: string, handler: FilterHandler) => void; action: (event: string, handler: ActionHandler) => void; init: (event: string, handler: InitHandler) => void; schedule: (cron: string, handler: ScheduleHandler) => void; }; type HookConfigFunction = (register: RegisterFunctions, context: HookExtensionContext) => void; export type HookConfig = HookConfigFunction;