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; revert: (entity: EditorEntity, state: EditorState) => Promise; } export declare const persisters: { files: Persister; }; export declare const save: ({ getEntity, editor, eventBus }: EditorState) => Mode | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerFunction | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerSpec>; export declare const revert: (state: EditorState) => Mode | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerFunction | import("@kui-shell/core/webapp/bottom-stripe").DirectViewControllerSpec>;