UNPKG

@riddance/host

Version:

10 lines (9 loc) 463 B
import { Context, type JsonObject } from '../context.js'; import { RootLogger } from './context.js'; import type { EventHandler } from './event-registry.js'; export declare function handle(log: RootLogger, context: Omit<Context, 'log'>, handler: EventHandler, options: { readonly subject: string; readonly event: JsonObject | undefined; readonly timestamp: Date; readonly messageId?: string; }, success: () => Promise<unknown>): Promise<boolean>;