import type { OpenAPIDefinition, OpenAPIServer } from '@redocly/api-docs'; export type ApiCallOperation = { pattern: RegExp; /** Upper case. */ method: string; /** * False when `x-mcp.apiCalls.hide` or `x-mcp.docs.hide` on the path item or operation, or an * `mcp.apiCalls.excludeOperations` entry, excludes it. */ callable: boolean; /** * False when RBAC hides the operation from the caller. The bridge then answers as for an * undocumented path, so the reply does not reveal that the operation exists. */ visible: boolean; /** Number of `{variable}` segments in the path; fewer is more specific. */ variables: number; }; /** An `mcp.apiCalls.excludeOperations` entry of one API; no `method` excludes every method of `path`. */ export type ExcludedOperation = { method?: string; path: string; }; /** * Every operation of the unfiltered `description`, with the ones missing from `visibleDescription`, * the caller's RBAC-filtered copy, marked not visible. A hidden or `excluded` operation stays in the * list, so a less specific template cannot claim its requests. */ export declare function apiCallOperationsOf(description: OpenAPIDefinition, visibleDescription: OpenAPIDefinition, servers: readonly OpenAPIServer[], excluded?: readonly ExcludedOperation[]): ApiCallOperation[]; /** The documented operations that an upper-case `method` on `pathname` matches. */ export declare function matchingApiCallOperations(operations: readonly ApiCallOperation[], pathname: string, method: string): ApiCallOperation[]; //# sourceMappingURL=api-call-operations.d.ts.map