import type { FunctionContext } from "./context.ts"; type HandlerModule = { onToolAfter?: (ctx: FunctionContext, ev: { tool: string; args: unknown; }) => void | Promise; onIdle?: (ctx: FunctionContext) => void | Promise; shouldContinue?: (ctx: FunctionContext) => boolean; }; export declare function loadHandlers(fnFilePath: string, handlersField?: string): Promise; export declare function safeCall(fn: (() => T | Promise) | undefined): Promise; export {}; //# sourceMappingURL=handlers-loader.d.ts.map