UNPKG

kui-shell

Version:

This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool

14 lines (13 loc) 1.08 kB
import { Mode } from '@kui-shell/core/api/registrars'; import { EditorEntity, EditorState, Editor } from './response'; export interface Persister { getCode: (entity: EditorEntity) => EditorEntity; saveString: string; save: (entity: EditorEntity, editor: Editor) => Promise<EditorEntity>; revert: (entity: EditorEntity, state: EditorState) => Promise<EditorEntity>; } export declare const persisters: { files: Persister; }; export declare const save: ({ getEntity, editor, eventBus }: EditorState) => Mode<string | import("@kui-shell/core/webapp/views/sidecar-core").CustomSpec<void> | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerFunction<object, object> | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerSpec>; export declare const revert: (state: EditorState) => Mode<string | import("@kui-shell/core/webapp/views/sidecar-core").CustomSpec<void> | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerFunction<object, object> | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerSpec>;