import type { RuntimeExecutionId, SkillRenderTarget } from "./types.js"; export type McpRuntimeConfigState = "configured" | "installed" | "authenticated" | "expired" | "revoked" | "unavailable"; export type McpConfigScope = "workspace" | "user"; export interface McpRuntimeServerEnv { [name: string]: string; } export interface McpRuntimeServerConfig { id: string; command?: string; args?: string[]; url?: string; env?: McpRuntimeServerEnv; oauth?: { required?: boolean; authenticated?: boolean; expiresAt?: string; revoked?: boolean; unavailable?: boolean; diagnostic?: string; }; } export interface McpRuntimeConfigTarget { runtime: string; target: SkillRenderTarget | "generic"; scope: McpConfigScope; relativePath: string; configPath: string; supportsWorkspaceScope: boolean; } export interface McpRuntimeServerStatus { id: string; runtime: string; scope: McpConfigScope; state: McpRuntimeConfigState; detail: string; configPath: string; diagnostic?: string; } export declare function resolveMcpRuntimeConfigTarget({ root, runtime, scope, }: { root: string; runtime: RuntimeExecutionId | SkillRenderTarget | string; scope?: McpConfigScope; }): McpRuntimeConfigTarget; export declare function writeScopedMcpServerConfig({ root, runtime, server, scope, }: { root: string; runtime: RuntimeExecutionId | SkillRenderTarget | string; server: McpRuntimeServerConfig; scope?: McpConfigScope; }): Promise; export declare function listScopedMcpServerStatuses({ root, runtime, scope, }: { root: string; runtime?: RuntimeExecutionId | SkillRenderTarget | string; scope?: McpConfigScope; }): Promise; export declare function redactMcpDiagnostic(value: string): string;