import { Handler } from './Handler.js'; export type ExecuteHandlerHooks = { onHandlerStart?: (info: { handler: Handler; ctx: Ctx; }) => void | Promise; onHandlerSuccess?: (info: { handler: Handler; ctx: Ctx; durationMs: number; output: any; }) => void | Promise; onHandlerError?: (info: { handler: Handler; ctx: Ctx; durationMs: number; error: unknown; }) => void | Promise; }; /** * Executes a handler graph for a given context. * * Each handler runs at most once per execution, and its output is cached * and provided to dependants via the `deps` parameter. The final return * value is ignored; callers should rely on handler side-effects (for * example, writing to an HTTP response) or on dependency outputs. */ export declare function executeHandler>>(handler: Handler, ctx: Ctx, hooks?: ExecuteHandlerHooks): Promise; //# sourceMappingURL=executeHandler.d.ts.map