import type { OpenAPIDefinition, OpenAPIOperation } from '@redocly/api-docs'; import type { ApiFunctionsUser, RbacConfig } from '@redocly/config'; import type { McpEndpoint, McpPath } from '../../../types'; /** The operations of `pathItem` that `x-mcp` does not hide, keyed as the definition keys them. */ export declare function visibleOperations(pathItem: McpPath | undefined): [string, McpEndpoint][]; type EndpointInfo = Pick & { method: string; path: string; }; export declare function getEndpointsFromPaths(def: OpenAPIDefinition): EndpointInfo[]; type ApiDescriptionAccess = { user: ApiFunctionsUser; rbac?: RbacConfig; requiresLogin?: boolean; }; export declare function getApiDescriptionFromFs({ relativePath, outdir, ...access }: ApiDescriptionAccess & { relativePath: string; outdir: string; }): Promise; /** The bundled description with no RBAC filtering; never return it to a caller. */ export declare function readApiDescriptionFromFs(relativePath: string, outdir: string): Promise; /** * A filtered copy of `definition` holding only what the user can read, or undefined when the user * can read none of it; the input is not mutated. */ export declare function filterApiDescriptionByAccess(definition: OpenAPIDefinition, { user, rbac, requiresLogin }: ApiDescriptionAccess): OpenAPIDefinition | undefined; export declare function absolutePath(requestedPath: string): string; /** Models copy a path and lose its casing; the definition's own spelling still answers. */ export declare function matchDocumentedPath(description: OpenAPIDefinition, requestedPath: string): string; export {}; //# sourceMappingURL=utils.d.ts.map