import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import type { CompanyClient } from './company.js';
import type { PoppyApiEntry } from './types.js';
export interface McpConnection {
    client: Client;
    api: PoppyApiEntry;
    close(): Promise<void>;
}
/**
 * Connects to a listed MCP server over Streamable HTTP with a Bearer Session Token issued for
 * that server's `url` (4.3 "Bearer tokens", section 6). On `invalid_token` the token is
 * re-minted once and the request retried; a `403` `insufficient_scope` / `sign_in_required`
 * rejects the call with a {@link ResourceAuthError} carrying the needed `scope`.
 */
export declare function connectMcp(company: CompanyClient, apiIndex?: number | undefined): Promise<McpConnection>;
//# sourceMappingURL=mcp.d.ts.map