import type { PluginMcpOrigin } from '../../extensions/agent-plugins/refresh-runtime-access.js'; import type { McpTransportFactory } from '@earendil-works/pi-coding-agent'; export type McpObservation = { method: string; stage: string; status: number; contentType: string; retryAt?: number; challenge?: string; }; export type McpTransportDiagnostics = { observe?: (value: McpObservation) => void; beforeRequest?: (request?: { method: string; stage: string; }) => void; probe?: boolean; }; export declare function retryAfter(value: string | null, now?: number): number | undefined; /** Adapts native transports; credentials are already resolved by prepareNativeMcpConfig. */ export declare function createXopcMcpTransport(diagnostics?: McpTransportDiagnostics, assertPluginCallAccess?: (origin: PluginMcpOrigin) => Promise): McpTransportFactory;