/** * Hook decorators for the call-agent flow. * * Use these decorators to hook into agent execution stages: * * @example * ```typescript * import { AgentHook } from '@frontmcp/sdk'; * * @Agent({ * name: 'my-agent', * // ... * }) * export class MyAgent extends AgentContext { * @AgentHook.Will.execute() * onBeforeExecute() { * this.logger.info('About to execute agent...'); * } * * @AgentHook.Did.execute() * onAfterExecute() { * this.logger.info('Agent execution completed'); * } * * @AgentHook.Stage('validateInput') * onValidateInput() { * this.logger.info('Validating input...'); * } * } * ``` */ declare const Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions) => MethodDecorator, Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions) => MethodDecorator, Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions) => MethodDecorator; /** * Agent hook decorators for the call-agent flow. * * Available hooks: * - `AgentHook.Will.*` - Run before a stage * - `AgentHook.Did.*` - Run after a stage * - `AgentHook.Stage(name)` - Run at a specific stage * * Stages available: * - Pre stages: parseInput, findAgent, checkAgentAuthorization, createAgentContext, acquireQuota, acquireSemaphore * - Execute stages: validateInput, execute, validateOutput * - Finalize stages: releaseSemaphore, releaseQuota, finalize */ export declare const AgentHook: { Will: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions) => MethodDecorator; Did: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions) => MethodDecorator; Stage: (stage: "execute" | "finalize" | "parseInput" | "checkEntryAuthorities" | "validateOutput" | "acquireQuota" | "acquireSemaphore" | "validateInput" | "releaseSemaphore" | "releaseQuota" | "findAgent" | "checkAgentAuthorization" | "createAgentContext", opts?: import("../../common").HookOptions) => MethodDecorator; }; export { Will as WillAgentStage, Did as DidAgentStage, Stage as OnAgentStage }; //# sourceMappingURL=agent.hooks.d.ts.map