import type { ExtensionAPI, ExtensionContext } from "@earendil-works/pi-coding-agent"; import type { McpExtensionState } from "./state.ts"; import { type McpAdapterOptions } from "./types.ts"; import { type McpOAuthRuntime } from "./mcp-auth-flow.ts"; import { type McpRuntimeOwner } from "./runtime-owner.ts"; export declare function clearFailure(state: McpExtensionState, serverName: string): void; export declare function recordFailure(state: McpExtensionState, serverName: string, message: string): void; export declare function isTuiMode(ctx: Pick): boolean; type McpInitializationOptions = McpAdapterOptions & { oauthRuntime?: McpOAuthRuntime; statusEvents?: McpExtensionState["statusEvents"]; }; export declare function initializeMcp(pi: ExtensionAPI, ctx: ExtensionContext, owner?: McpRuntimeOwner, options?: McpInitializationOptions): Promise; export declare function markKeepAliveAfterConnect(state: McpExtensionState, serverName: string): void; export declare function updateServerMetadata(state: McpExtensionState, serverName: string): void; export declare function updateMetadataCache(state: McpExtensionState, serverName: string, options?: { preserveEmptyResources?: boolean; }): void; export declare function notifyToolMetadataUpdated(state: McpExtensionState, serverName: string, reason: string): void; export declare function flushMetadataCache(state: McpExtensionState): void; export declare function updateStatusBar(state: McpExtensionState): void; export declare function getFailureAgeSeconds(state: McpExtensionState, serverName: string): number | null; export declare function getFailureMessage(state: McpExtensionState, serverName: string): string | null; export declare function lazyConnect(state: McpExtensionState, serverName: string, signal?: AbortSignal): Promise; export {};