import type { OpenAPIParameter, Referenced, OpenAPIDefinition } from '@redocly/api-docs'; import type { McpEndpoint } from '../../types.js'; import { resolveRef } from '@redocly/api-docs/lib/utils/inline-openapi-refs.js'; export { resolveRef }; type JsonValue = string | number | boolean | null | JsonValue[] | { [key: string]: JsonValue; }; type JsonObject = { [key: string]: JsonValue; }; export type ResolvedOperation = { operation: JsonObject; components?: Record; }; type ResolveOperationParams = { operation: McpEndpoint; pathParams: Referenced[]; definition: OpenAPIDefinition; }; export declare function resolveOperation({ operation, pathParams, definition, }: ResolveOperationParams): ResolvedOperation; /** * The operation with every `$ref` it follows inlined, or undefined when the followed targets pass * `maxBytes` or the inliner cannot read the operation. */ export declare function inlineOperation({ operation, pathParams, definition }: ResolveOperationParams, maxBytes: number): ResolvedOperation | undefined; //# sourceMappingURL=resolve-refs.d.ts.map