import { ISwaggerInventory } from "@microsoft.azure/openapi-validator-core"; import { Workspace } from "./swagger-workspace"; export interface CollectionApiInfo { modelName: string; childModelName: string; collectionGetPath: string[]; specificGetPath: string[]; } declare type Operation = { specPath: string; apiPath: string; httpMethod: string; operationId: string; requestBodyParameter?: any; requestParameters?: any[]; responseSchema: any; }; declare type ResourceInfo = { modelName: string; specPath: string; operations: Operation[]; resourceType?: string; }; export declare class ArmHelper { private innerDoc; private specPath; private inventory; private BaseResourceModelNames; private ResourceGroupWideResourceRegEx; private SubscriptionsWideResourceRegEx; private OperationApiRegEx; private SpecificResourcePathRegEx; private ExtensionResourceFullyQualifiedPathReg; private ExtensionResourceReg; private XmsResources; resources: ResourceInfo[]; armResources: ResourceInfo[] | undefined; private swaggerUtil; constructor(innerDoc: any, specPath: string, inventory: ISwaggerInventory); private getBodyParameter; private populateOperations; private populateResources; private getXmsResources; private getAllOfResources; getInternalModel(modelName: string): { file: string; value: any; } | undefined; getResourceByName(modelName: string): { file: string; value: any; } | undefined; private checkResource; stripDefinitionPath(reference: string | undefined): string | undefined; private extractResourceInfo; getAllNestedResources(): string[]; getTopLevelResources(): any[]; getTopLevelResourceNames(): any[]; getTopLevelResourcesByRG(): any[]; getAllResources(includeGet?: boolean, useArmResources?: boolean, includeListOperationPath?: boolean): any[]; getTrackedResources(): any[]; getProxyResources(): any[]; getAllResourceNames(): string[]; private getResourcesTypeHierarchy; private getResourceHierarchy; private containsDiscriminatorInternal; containsDiscriminator(modelName: string): boolean; getOperationApi(): any; resourcesWithGetOperations(): ResourceInfo[]; resourcesWithPutPatchOperations(): ResourceInfo[]; getCollectionApiInfo(): CollectionApiInfo[]; getCollectionResources(): Map; isPathBySubscription(path: string): boolean; isPathByResourceGroup(path: string): boolean; isPathOfExtensionResource(path: string): boolean; getResponseModelFromPath(path: string): Workspace.EnhancedSchema | undefined; getResponseModelNameFromPath(path: string): string | undefined; getOperation(path: string, code?: string, doc?: any): any; getOperationIdFromPath(path: string, code?: string, doc?: any): any; isPathXmsPageable(path: string, code?: string, doc?: any): boolean; findOperation(path: string, code?: string): any; verifyCollectionModel(collectionModel: any, childModelName: string): boolean; getProperty(schema: Workspace.EnhancedSchema, property: string): Workspace.EnhancedSchema; getResourceProperties(resourceName: string): never[] | { [key: string]: Workspace.EnhancedSchema; }; getProperties(schema: Workspace.EnhancedSchema): never[] | { [key: string]: Workspace.EnhancedSchema; }; getAttribute(schema: Workspace.EnhancedSchema, attr: string): Workspace.EnhancedSchema | undefined; enhancedSchema(schema: any, specPath?: string): Workspace.EnhancedSchema; } export {};