import { type McpConnectionCallback } from './callback-config.js'; export type RemoteMcpIdentity = { resource: string; issuer: string; subject: string; clientId: string; }; export type RemoteMcpGrant = RemoteMcpIdentity & { connectionId: string; capabilityIds: string[]; name?: string; toolset?: string; projectIds?: string[]; maxConcurrentRuns?: number; callback?: McpConnectionCallback; grantedAt: number; expiresAt?: number; revokedAt?: number; }; export interface GrantRemoteMcpOptions { capabilityIds?: readonly string[]; write?: boolean; name?: string; toolset?: string; projectIds?: readonly string[]; maxConcurrentRuns?: number; callback?: McpConnectionCallback; expiresAt?: number; replaceExisting?: boolean; } export declare function grantRemoteMcpConnection(identity: RemoteMcpIdentity, options?: GrantRemoteMcpOptions): RemoteMcpGrant; export declare function findRemoteMcpGrant(identity: RemoteMcpIdentity): RemoteMcpGrant | undefined; export declare function findRemoteMcpGrantByConnectionId(connectionId: string): RemoteMcpGrant | undefined; export declare function listRemoteMcpGrants(): RemoteMcpGrant[]; export declare function revokeRemoteMcpConnection(connectionId: string): boolean;