/** * MCP service diagnostic checks for the doctor command. * * Covers: MCP daemon health, GitLab API token, and Atlassian API token. * * All checks are read-only and non-destructive. Each returns a DoctorCheck * and must never throw — errors are caught and surfaced as fail/warn results. */ import { DoctorCheck } from './types.js'; /** * Minimal token shape required by the API diagnostic checks. * Callers read this from the token store and pass it in, keeping these * checks free of direct store dependencies. */ export interface TokenInfo { expiresAt: number; } /** * Check if the MCP daemon is running and healthy. * Reads the PID/auth file via the fork module, then calls the /health endpoint. */ export declare function checkMcpDaemon(): Promise; /** * Check if the stored GitLab token exists and is not expired. * Accepts a TokenInfo (or null) so the caller can inject token data from * the store without this function needing to open the database directly. */ export declare function checkGitLabApi(token: TokenInfo | null): DoctorCheck; /** * Check if the stored Atlassian token exists and is not expired. * Accepts a TokenInfo (or null) so the caller can inject token data from * the store without this function needing to open the database directly. */ export declare function checkAtlassianApi(token: TokenInfo | null): DoctorCheck; //# sourceMappingURL=mcp-service-checks.d.ts.map