import { V1ObjectMeta, V1Pod, V1PodSpec, V1PodStatus } from "@kubernetes/client-node"; import { ObservableArray } from "azure-devops-ui/Core/Observable"; import { ILabelModel } from "azure-devops-ui/Label"; import { IStatusProps } from "azure-devops-ui/Status"; import { SelectedItemKeys } from "./Constants"; export interface IMetadataAnnotationPipeline { runName: string | undefined; runUrl: string | undefined; pipelineName: string | undefined; jobName: string | undefined; } export declare class Utils { static isOwnerMatched(objectMeta: V1ObjectMeta, ownerUIdLowerCase: string): boolean; static getUILabelModelArray(items: { [key: string]: string; }): ObservableArray; static getPillTags(items: { [key: string]: string; }): string[]; static getPipelineText(annotations: { [key: string]: string; }): string; static getPipelineDetails(annotations: { [key: string]: string; }): IMetadataAnnotationPipeline; static getPodsStatusProps(currentPods: number, desiredPods: number): { statusProps: IStatusProps | undefined; pods: string; podsTooltip: string; }; static generateEqualsConditionLabelSelector(labels: { [key: string]: string; }): string; static generatePodStatusProps(status: V1PodStatus): { statusProps: IStatusProps; tooltip: string; }; static filterByName(objectName: string, filterKey?: string): boolean; static getImageText(podSpec: V1PodSpec | undefined): { imageText: string; imageTooltipText?: string; }; static getFirstImageName(podSpec: V1PodSpec | undefined): string; static getFirstContainerName(podSpec: V1PodSpec | undefined): string; static getImageIdsForPods(pods: V1Pod[]): string[]; static getImageIdForWorkload(containerName: string, pods: V1Pod[], ownerId?: string): string; static getImageResourceUrlParameter(imageId: string, matchPattern: RegExp): string; static getImageResourceUrl(imageId: string): string; static extractDisplayImageName(imageId: string): string; static appendDefaultTagToImageName(imageName: string): string; /** * We will deprecate this function as soon as we decide on a better mapping. Temporarily using this * @param kind */ static getItemTypeKeyFromKind(kind: string): SelectedItemKeys | ""; /** * We will deprecate this function as soon as we decide on a better mapping. Temporarily using this * @param typeKey */ static getKindFromItemTypeKey(typeKey: SelectedItemKeys): string; static copyToClipboard(text: string): void; }