import { Arguments, MultiModalResponse, Registrar, EditableSpec } from '@kui-shell/core'; import { KubeResource, KubeItems } from '@kui-shell/plugin-kubectl-core'; import { KubeOptions } from './options'; export declare function isEditable(resource: KubeResource): boolean; export declare function editSpec(cmd: string, namespace: string, args: Arguments, resource: KubeResource | KubeItems, applySubCommand?: string): EditableSpec; export declare function doEdit(cmd: string, args: Arguments): Promise | import("@kui-shell/core").XtermResponse | { code: string | number; message?: string; } | { errno: string | number; } | (import("@kui-shell/core").Table & Partial) | (import("@kui-shell/core").Abortable & { response: import("@kui-shell/core").ScalarResponse; }) | import("@kui-shell/core").NavResponse | import("@kui-shell/core/mdist/models/RadioTable").default | import("@kui-shell/core").UsageModel | import("@kui-shell/core").ResourceWithMetadata | import("@kui-shell/core").RawResponse | import("@kui-shell/core").ResourceWithMetadata[] | { apiVersion: string; kind: string; metadata: { name: string; namespace: string; }; spec: EditableSpec; modes: { mode: string; label: string; order: any; priority: any; spec: EditableSpec; contentType: string; content: string; }[]; }>; export declare function formatToolbarText(args: Arguments, response: KubeResource): import("@kui-shell/core").ToolbarText | ({ type: string; text: string; } & { alerts: { type: string; title: string; }[]; }); /** * Variant of `resource` enhanced with an `Editable` impl that saves * via kubectl apply. * */ export declare function editable(cmd: string, args: Arguments, response: KubeResource): Promise; /** KubeResource -> MultiModalResponse view transformer */ export declare function viewTransformer(cmd: string, args: Arguments, response: KubeResource | KubeItems): Promise & import("@kui-shell/core/mdist/models/mmr/types").View> & { defaultMode: string; }>; export declare const editFlags: (cmd: string) => import("@kui-shell/core").CommandOptions & { viewTransformer: any; }; export declare function register(registrar: Registrar, cmd: string): void; export default function registerForKubectl(registrar: Registrar): void;