/** * Status checks for MCP-related services: GitLab token, Atlassian token, * and the MCP background daemon. * * All functions accept an optional TokenStore injection so tests can drive * them with NullTokenStore without touching disk or network. */ import type { TokenStore } from '../../mcp/store/types.js'; import type { ProviderTokenStatus, McpServerStatus } from './types.js'; /** * Format a Unix seconds timestamp as a human-readable time-until-expiry string. * * Returns "Xh Ym" when the remainder exceeds one hour, "Ym" otherwise. * Returns "expired" when the timestamp is in the past or at the present moment. */ export declare function formatExpiresIn(expiresAtSec: number): string; /** * Check GitLab OAuth token status. * * When a store is supplied (tests), it is used directly. Otherwise the * on-disk SQLite store is opened via PADUA_MCP_ENCRYPTION_KEY. */ export declare function checkGitLabToken(store?: TokenStore): Promise; /** * Check Atlassian OAuth token status. * * When a store is supplied (tests), it is used directly. Otherwise the * on-disk SQLite store is opened via PADUA_MCP_ENCRYPTION_KEY. */ export declare function checkAtlassianToken(store?: TokenStore): Promise; /** * Check whether the MCP background daemon is running and healthy. */ export declare function checkMcpServer(): Promise; //# sourceMappingURL=mcp-checks.d.ts.map