import { type Database } from "../data/database.js"; export interface McpServerAvailability { name: string; status: "unchecked" | "checking" | "available" | "unavailable" | "auth-required" | "invalid-config"; checkedAt?: number; toolCount?: number; resourceCount?: number; error?: string; } export interface McpServerSummary { name: string; transport: "http" | "stdio" | "invalid"; assignedCount?: number; availability?: McpServerAvailability; } export declare const MCP_REDACTED_VALUE = "[REDACTED]"; export declare function getBossmodeMcpDir(): string; export declare function getBossmodeMcpRuntimeDir(): string; export declare function getMcpServersObject(config: unknown): Record; export declare function getMcpServerNames(config: unknown): string[]; export declare function restoreRedactedMcpConfig(submitted: unknown, existing: unknown): unknown; export declare function inferMcpServerTransport(entry: unknown): McpServerSummary["transport"]; export declare function isAssignableMcpServerConfig(entry: unknown): boolean; export declare function getAssignableMcpServerNames(config: unknown): string[]; export declare function readMcpStatusCache(): Record; export declare function disableDeferredMcpCapabilities(value: unknown, key?: string): unknown; export declare function readMemberMcpConfig(memberId: string): Record | null; export declare function filterMcpConfigForServers(config: unknown, serverNames: string[]): Record; export type McpStatusCache = Record; /** Internal configuration API, including secret-bearing transport and OAuth fields. */ export declare function hasMcpConfiguration(ownerId?: string, db?: Database): boolean; export declare function readMcpConfiguration(ownerId?: string, db?: Database): Record; export declare function importMemberMcpConfiguration(memberId: string, config: Record, db?: Database): void; export declare function importMcpConfiguration(config: Record, ownerId?: string, db?: Database): void; export declare function readMcpAvailability(db?: Database): McpStatusCache; export declare function importMcpAvailability(cache: McpStatusCache, db?: Database): void; export interface McpOauthEntry { tokens?: { accessToken: string; refreshToken?: string; expiresAt?: number; scope?: string; }; clientInfo?: { clientId: string; clientSecret?: string; clientIdIssuedAt?: number; clientSecretExpiresAt?: number; redirectUris?: string[]; }; codeVerifier?: string; oauthState?: string; serverUrl?: string; } export declare function mcpOauthServerKey(serverName: string): string; /** Pure decoder for the pinned adapter's tokens.json AuthEntry document. * No file lookup, schema initialization, fallback or import-on-read. */ export declare function decodeLegacyMcpOauthEntry(value: unknown): McpOauthEntry; export declare function readMcpOauthEntry(serverName: string, db?: Database): McpOauthEntry | undefined; export declare function writeMcpOauthEntry(serverName: string, entry: McpOauthEntry, db?: Database): void; export declare function deleteMcpOauthEntry(serverName: string, db?: Database): void; export declare function importHashedMcpOauthEntry(serverKey: string, input: McpOauthEntry, db?: Database): void; /** Synchronous credential capability, with stable identity per explicitly supplied database. */ export interface McpCredentialStore { read(serverName: string): McpOauthEntry | undefined; write(serverName: string, entry: McpOauthEntry): void; remove(serverName: string): void; transaction(operation: () => T): T; } export declare function createMcpOauthStorage(db: Database): McpCredentialStore; //# sourceMappingURL=mcp.d.ts.map