/** * spec_kit.get_ticket tool * * Fetches ticket details from the configured backlog provider. * Supports GitHub Issues, Jira, Shortcut, and local providers. * * @example * ```typescript * import { createGetTicketTool } from './get-ticket.js'; * * const tool = createGetTicketTool(config, () => registry.getProvider()); * * // Execute via MCP * const result = await tool.execute({ ref: '#123' }); * ``` */ import type { AgencyTool } from '@generacy-ai/agency'; import type { BacklogProvider } from '../providers/types.js'; import type { SpecKitConfig } from '../config.js'; /** * Create the spec_kit.get_ticket tool. * * This tool fetches ticket details from the configured backlog system. * It auto-detects the provider from the reference format when possible, * falling back to the configured default provider. * * @param config - SpecKit plugin configuration * @param getProvider - Factory function to get the appropriate provider * @returns AgencyTool instance * * @example * ```typescript * const registry = new ProviderRegistry(config); * const tool = createGetTicketTool(config, (name) => registry.getProvider(name)); * * // Fetch a GitHub issue * const result = await tool.execute({ ref: '#123' }); * * // Fetch a Jira ticket * const result = await tool.execute({ ref: 'PROJ-456' }); * ``` */ export declare function createGetTicketTool(config: SpecKitConfig, getProvider: (name?: string) => BacklogProvider): AgencyTool; /** * Create get_ticket tool with built-in registry. * * Convenience function that creates a ProviderRegistry internally. * * @param config - SpecKit plugin configuration * @returns AgencyTool instance */ export declare function createGetTicketToolWithRegistry(config: SpecKitConfig): AgencyTool; //# sourceMappingURL=get-ticket.d.ts.map