import type { OpenAPIDefinition, OpenAPIMcp } from '@redocly/api-docs'; import type { RbacConfig, RedoclyConfig } from '@redocly/config'; /** Whether the gateway fetch capability is on: the feature flag plus none of mcp/docs hidden. */ export declare function isGatewayCapabilityEnabled(mcp?: RedoclyConfig['mcp']): boolean; /** Whether an API is eligible for the gateway (fetch-capable `execute` + `/mcp` advertisement). */ export declare function isGatewayEligible(info: OpenAPIDefinition['info'] | undefined, relativePath: string, rbacConfig: RbacConfig): boolean; /** * Whether an API docs page advertises the `/mcp` endpoint via an injected root-level x-mcp: * the capability is on, the author has not provided their own x-mcp servers, and the API is * both gateway-eligible and part of the Docs MCP catalog. */ export declare function shouldAdvertiseGatewayXMcp(definition: (OpenAPIDefinition & { 'x-mcp'?: { servers?: unknown[]; }; }) | undefined, relativePath: string, rbacConfig: RbacConfig, mcpConfig?: RedoclyConfig['mcp']): boolean; export declare function buildGatewayXMcp(url: string): OpenAPIMcp; //# sourceMappingURL=eligibility.d.ts.map