import { SmartAPISpec, ParsedAPIMetadataObject, APIClass } from "./types"; export default class API implements APIClass { private _smartapiDoc; /** * constructor to load SmartAPI specification. * @param {object} smartapiDoc - SmartAPI Specification in Javascript Object format */ constructor(smartapiDoc: SmartAPISpec); get smartapiDoc(): SmartAPISpec; get metadata(): ParsedAPIMetadataObject; /** * Fetch the title of API from SmartAPI Specification. */ private fetchAPITitle; private fetchXTranslatorInforesCurie; private fetchXTranslatorComponent; private fetchXTranslatorTeam; /** * Fetch the tags associated with the API from SmartAPI Specification. */ private fetchAPITags; /** * Fetch the url of the server from SmartAPI Specification. */ private fetchServerUrl; /** * Fetch component from SmartAPI Specification. */ private fetchComponents; /** * Fetch metadata information from SmartAPI Specification. */ private fetchAPIMeta; /** * Fetch all operations from SmartAPI Specification. */ private fetchAllOpts; }