import type { InstanceConfig } from "../types.js"; export interface KubernetesScope { context: string; namespace: string; } export declare function resolveScope(instance: InstanceConfig, instanceName: string): KubernetesScope; /** * Workload names from deployment/k8s/base, used when an instance is registered * without an explicit --workload map. */ export declare const defaultWorkloads: Record; /** * Resolves a `--service` value against the configured workload map. Refuses * to guess: with several workloads configured and no service named, the * caller has to be explicit. */ export declare function resolveWorkload(instance: InstanceConfig, service: string | undefined): string; export declare function resolveWorkloads(instance: InstanceConfig, service: string | undefined): string[]; export declare function buildGetPodsArgs(scope: KubernetesScope): string[]; export declare function buildGetWorkloadArgs(scope: KubernetesScope, workload: string): string[]; export declare function buildLogsArgs(scope: KubernetesScope, workload: string, options?: { follow?: boolean; tail?: number; }): string[]; export declare function buildRestartArgs(scope: KubernetesScope, workload: string): string[]; export declare function buildRolloutStatusArgs(scope: KubernetesScope, workload: string): string[]; export declare function buildCanIArgs(scope: KubernetesScope, verb: string, resource: string): string[]; /** * EndpointSlice rather than Endpoints: the v1 Endpoints API is deprecated from * Kubernetes 1.33 and reading it makes the API server emit a deprecation * warning on every call. */ export declare function buildGetEndpointSlicesArgs(scope: KubernetesScope): string[]; /** * Namespaces are DNS-1123 labels, which cannot start with a hyphen. Checking * the shape here means a configured value can never be read by kubectl as a * flag rather than as an argument. */ export declare function assertNamespace(value: string, label: string): void; /** * Context names are freer-form than namespaces, so this only rules out the * shapes that would be ambiguous on a command line. */ export declare function assertContextName(value: string, label: string): void; export declare function assertWorkloadReference(value: string, label: string): void; /** * Parses `backend=deployment/eudiplo,client=deployment/eudiplo-client` into a * workload map, validating each reference as it goes. */ export declare function parseWorkloadMap(value: string): Record; //# sourceMappingURL=kubectl.d.ts.map