import { execSync } from 'node:child_process'; import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { WorkflowService, type WorkflowServiceDependencies } from '../services/workflowService.js'; /** * Get GitHub authentication token with multiple fallback strategies * * Priority order: * 1. GITHUB_TOKEN or GH_TOKEN environment variable (CI/CD friendly) * 2. gh CLI token (local development friendly) * 3. Throw error with clear instructions * * @param exec - Optional execSync function for dependency injection (testing) * @returns GitHub personal access token * @throws Error if no token found * @internal Exported for testing purposes */ export declare function getGitHubToken(exec?: typeof execSync): string; export interface WorkflowToolDependencies { service?: WorkflowService; serviceDeps?: Partial; } export declare function registerWorkflowTools(server: McpServer, deps?: Partial): void;