import { KernelspecInfo } from "@nteract/types"; import { Action, ErrorAction, HasContent, HasFilepathChange, HasKernel } from "../utils"; export declare const CHANGE_CONTENT_NAME = "CORE/CHANGE_CONTENT_NAME"; export declare const CHANGE_CONTENT_NAME_FULFILLED = "CORE/CHANGE_CONTENT_NAME_FULFILLED"; export declare const CHANGE_CONTENT_NAME_FAILED = "CORE/CHANGE_CONTENT_NAME_FAILED"; export declare const CHANGE_FILENAME = "CHANGE_FILENAME"; export declare const NEW_NOTEBOOK = "NEW_NOTEBOOK"; export declare const CLOSE_NOTEBOOK = "CLOSE_NOTEBOOK"; export declare const DISPOSE_CONTENT = "DISPOSE_CONTENT"; export declare type ChangeContentName = Action; export declare type ChangeContentNameFulfilled = Action; export declare type ChangeContentNameFailed = ErrorAction; export declare type ChangeFilenameAction = Action; export declare type NewNotebook = Action; export declare type CloseNotebook = Action; export declare type DisposeContent = Action; export declare const changeContentName: { (payload: HasContent & HasFilepathChange): { type: "CORE/CHANGE_CONTENT_NAME"; payload: HasContent & HasFilepathChange; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"prevFilePath", keyof U> | import("utility-types").SetDifference<"filepath", keyof U>>) => { type: "CORE/CHANGE_CONTENT_NAME"; payload: HasContent & HasFilepathChange; }; }; export declare const changeContentNameFulfilled: { (payload: HasContent & HasFilepathChange): { type: "CORE/CHANGE_CONTENT_NAME_FULFILLED"; payload: HasContent & HasFilepathChange; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"prevFilePath", keyof U> | import("utility-types").SetDifference<"filepath", keyof U>>) => { type: "CORE/CHANGE_CONTENT_NAME_FULFILLED"; payload: HasContent & HasFilepathChange; }; }; export declare const changeContentNameFailed: (payload: HasContent & HasFilepathChange & { basepath: string; } & { error: Error; code?: string | undefined; }) => { type: "CORE/CHANGE_CONTENT_NAME_FAILED"; payload: HasContent & HasFilepathChange & { basepath: string; } & { error: Error; code?: string | undefined; }; error: true; }; export declare const changeFilename: { (payload: HasContent & { filepath?: string | undefined; }): { type: "CHANGE_FILENAME"; payload: HasContent & { filepath?: string | undefined; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"filepath", keyof U>>) => { type: "CHANGE_FILENAME"; payload: HasContent & { filepath?: string | undefined; }; }; }; export declare const newNotebook: { (payload: HasContent & HasKernel & { filepath: string | null; cwd: string; kernelSpec: KernelspecInfo; }): { type: "NEW_NOTEBOOK"; payload: HasContent & HasKernel & { filepath: string | null; cwd: string; kernelSpec: KernelspecInfo; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"kernelRef", keyof U> | import("utility-types").SetDifference<"kernelSpec", keyof U> | import("utility-types").SetDifference<"cwd", keyof U> | import("utility-types").SetDifference<"filepath", keyof U>>) => { type: "NEW_NOTEBOOK"; payload: HasContent & HasKernel & { filepath: string | null; cwd: string; kernelSpec: KernelspecInfo; }; }; }; export declare const closeNotebook: { (payload: HasContent): { type: "CLOSE_NOTEBOOK"; payload: HasContent; }; with>(partial: U): (payload: Pick>) => { type: "CLOSE_NOTEBOOK"; payload: HasContent; }; }; export declare const disposeContent: { (payload: HasContent): { type: "DISPOSE_CONTENT"; payload: HasContent; }; with>(partial: U): (payload: Pick>) => { type: "DISPOSE_CONTENT"; payload: HasContent; }; };