import { Callback } from '@buildwithlayer/openapi-zod-spec/3/1/1/callback.js'; import { Components } from '@buildwithlayer/openapi-zod-spec/3/1/1/components.js'; import { Example } from '@buildwithlayer/openapi-zod-spec/3/1/1/example.js'; import { Header } from '@buildwithlayer/openapi-zod-spec/3/1/1/header.js'; import { Link } from '@buildwithlayer/openapi-zod-spec/3/1/1/link.js'; import { MediaType } from '@buildwithlayer/openapi-zod-spec/3/1/1/media-type.js'; import { OpenAPI } from '@buildwithlayer/openapi-zod-spec/3/1/1/open-api.js'; import { Operation } from '@buildwithlayer/openapi-zod-spec/3/1/1/operation.js'; import { Parameter } from '@buildwithlayer/openapi-zod-spec/3/1/1/parameter.js'; import { PathItem } from '@buildwithlayer/openapi-zod-spec/3/1/1/path-item.js'; import { Reference } from '@buildwithlayer/openapi-zod-spec/3/1/1/reference.js'; import { RequestBody } from '@buildwithlayer/openapi-zod-spec/3/1/1/request-body.js'; import { Response } from '@buildwithlayer/openapi-zod-spec/3/1/1/response.js'; import { Schema } from '@buildwithlayer/openapi-zod-spec/3/1/1/schema.js'; import { SecurityRequirement } from '@buildwithlayer/openapi-zod-spec/3/1/1/security-requirement.js'; import { SecurityScheme } from '@buildwithlayer/openapi-zod-spec/3/1/1/security-scheme.js'; import { Server } from '@buildwithlayer/openapi-zod-spec/3/1/1/server.js'; import { APITool } from './types.js'; type ResolvedReference = Callback | Example | Header | Link | Parameter | PathItem | RequestBody | Response | Schema | SecurityScheme; export declare const resolveReference: (refPath: string, components: Components) => T; export declare const updateToolAndGenerateDefs: (obj: any, components: Components, currentDefs?: Record) => Record; export declare const mediaTypeToJsonSchema: (mediaType: MediaType, components: Components) => Schema | undefined; export declare const generateToolName: (pathName: string, operationName: string, operationId?: string) => string; export declare const operationToTool: (operationName: string, operation: Operation, pathName: string, pathParameters: (Parameter | Reference)[], pathServer: Server, topLevelSecurityRequirement: SecurityRequirement[], components: Components) => APITool; declare const parseToolsFromSpec: (spec: OpenAPI) => APITool[]; export default parseToolsFromSpec; //# sourceMappingURL=openapiToTools.d.ts.map