/** * Shared chat tools — used by both chat-issue and chat-product servers. * * The two surfaces present the same conversational primitives * (`send_chat_message`, `provide_options`, `get_chat_history`, * `create_task`, `list_product_members`) — extracted here to keep the * implementations in one place. Servers compose by selecting the subset * they expose. */ import { type SdkMcpToolDefinition } from '@anthropic-ai/claude-agent-sdk'; import { type ToolDeps } from '../../core/transport.js'; /** * `send_chat_message` — post a follow-up AI message. */ export declare function buildSendChatMessage(deps: ToolDeps): SdkMcpToolDefinition; /** * `provide_options` — present 2-4 actionable choices to the user. */ export declare function buildProvideOptions(deps: ToolDeps, actionKeyHint?: string): SdkMcpToolDefinition; /** * `get_chat_history` — paginated chat-message reader. */ export declare function buildGetChatHistory(deps: ToolDeps): SdkMcpToolDefinition; /** * `create_task` — composite: list existing → compute next sequence → create. * * Used identically by both chat surfaces; differs only in the default * `action_url` fallback (issue-scoped vs product-scoped). The * `actionUrlFallback` callback gets `{ product_id, issue_id }` and * returns the URL. */ export declare function buildCreateTask(deps: ToolDeps, actionUrlFallback: (args: { product_id: string; issue_id?: string | null; }) => string | null): SdkMcpToolDefinition; /** * `list_product_members` — owner + developers for assignment lookups. */ export declare function buildListProductMembers(deps: ToolDeps): SdkMcpToolDefinition;