import { ActionHandler, FilterHandler, InitHandler } from '@directus/shared/types';
import { ScheduledTask } from 'node-cron';

export type EventHandler =
	| { type: 'filter'; name: string; handler: FilterHandler }
	| { type: 'action'; name: string; handler: ActionHandler }
	| { type: 'init'; name: string; handler: InitHandler }
	| { type: 'schedule'; task: ScheduledTask };
