import type { ExtractPropTypes, PropType } from 'vue'; import { type SelectLabelsDialogProps } from '../../dialogs/select-labels-dialog/props'; export type LabelSelector = { matchLabels?: { [key: string]: string; }; matchExpressions?: LabelSelectorRequirement[]; }; export type PodAffinity = { requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]; preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]; }; export type PodAffinityTerm = { labelSelector?: LabelSelector; topologyKey?: string; namespaces?: string[]; }; export type WeightedPodAffinityTerm = { weight?: number; podAffinityTerm?: PodAffinityTerm; }; export declare enum PodAffinityConditionType { required = "requiredDuringSchedulingIgnoredDuringExecution", preferred = "preferredDuringSchedulingIgnoredDuringExecution" } export interface LabelSelectorRequirement { key?: string; operator?: string; values?: Array; } export interface FlattenPodAffinity { condition?: PodAffinityConditionType; weight?: number; topologyKey?: string; namespaces?: string[]; matchLabels?: { [key: string]: string; }; matchExpressions?: LabelSelectorRequirement[]; } export type PodLabels = SelectLabelsDialogProps['labels']; export declare const podAffinityProps: { yupConcat: { type: PropType>; default: undefined; }; field: { type: StringConstructor; default: string; }; label: { type: StringConstructor; default: undefined; }; isAnti: { type: BooleanConstructor; default: boolean; }; kpandaLink: { type: StringConstructor; default: undefined; }; iconMessage: { type: StringConstructor; default: undefined; }; podSelectorTip: { type: StringConstructor; default: undefined; }; showSwitch: { type: BooleanConstructor; default: boolean; }; enable: { type: BooleanConstructor; default: boolean; }; hideLabelBtn: { type: BooleanConstructor; default: boolean; }; showNamespaces: { type: BooleanConstructor; default: boolean; }; namespaceOptions: { type: PropType; default: () => never[]; }; podLabels: { type: PropType Promise)>; default: () => never[]; }; }; export type PodAffinityProps = ExtractPropTypes; export declare const podAffinityEmits: { 'update:enable': (val: boolean) => void; }; export type PodAffinityEmits = typeof podAffinityEmits;