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>;
