import * as vscode from 'vscode' ; export interface CloudExplorerV1 { registerCloudProvider ( cloudProvider ) : void ; resolveCommandTarget ( target ? ) : CloudExplorerV1 . CloudExplorerNode | undefined ; refresh ( ) : void ; } export namespace CloudExplorerV1 { export interface CloudProvider { readonly cloudName : string ; readonly treeDataProvider : vscode . TreeDataProvider < any > ; getKubeconfigYaml ( cluster ) : Promise < string | undefined > ; } export interface CloudExplorerCloudNode { readonly nodeType : 'cloud' ; readonly cloudName : string ; } export interface CloudExplorerResourceNode { readonly nodeType : 'resource' ; readonly cloudName : string ; readonly cloudResource : any ; } export type CloudExplorerNode = CloudExplorerCloudNode | CloudExplorerResourceNode ; }