import { OnboardingMessage } from "../services/onboarding-flow.mjs"; import { ChannelId } from "../services/channel-sender.mjs"; //#region extensions/crypto/src/hooks/after-tool-call.d.ts /** Dependencies injected by the plugin register() function. */ interface AfterToolCallDeps { /** The single source of truth for write-tool names. */ writeToolNames: Set; /** Send an onboarding message to a specific channel/user. */ sendOnboardingMessage: (channel: ChannelId, chatId: string, msg: OnboardingMessage) => Promise; /** Mark a conversation as handled by onboarding (sets flag with TTL). */ markOnboardingHandled: (chatId: string) => void; /** Get current wallet connection state. */ getWalletState: () => { connected: boolean; address?: string | null; chainId?: number | null; mode?: string | null; }; logger?: { info?: (message: string, ...args: unknown[]) => void; warn?: (message: string, ...args: unknown[]) => void; } | null; } /** * Handle the after_tool_call hook event. * * This function contains all post-tool-call side effects: onboarding, * cost basis recording, ledger, budget, session recall, and evolution. */ declare function handleAfterToolCall(event: any, ctx: any, deps: AfterToolCallDeps): Promise; //#endregion export { AfterToolCallDeps, handleAfterToolCall }; //# sourceMappingURL=after-tool-call.d.mts.map