import { Action, ErrorAction, HasCell, HasContent, HasKernel, MaybeHasContent } from "../utils"; import { CellId } from "@nteract/commutable"; export declare const SEND_EXECUTE_REQUEST = "SEND_EXECUTE_REQUEST"; export declare const EXECUTE_CELL = "EXECUTE_CELL"; export declare const EXECUTE_ALL_CELLS = "EXECUTE_ALL_CELLS"; export declare const EXECUTE_ALL_CELLS_ABOVE = "EXECUTE_ALL_CELLS_ABOVE"; export declare const EXECUTE_ALL_CELLS_BELOW = "EXECUTE_ALL_CELLS_BELOW"; export declare const EXECUTE_FOCUSED_CELL = "EXECUTE_FOCUSED_CELL"; export declare const EXECUTE_CANCELED = "EXECUTE_CANCELED"; export declare const EXECUTE_FAILED = "EXECUTE_FAILED"; export declare const SET_EXECUTION_STATE = "SET_EXECUTION_STATE"; export declare const ENQUEUE_ACTION = "ENQUEUE_ACTION"; export declare const CLEAR_MESSAGE_QUEUE = "CLEAR_MESSAGE_QUEUE"; export declare type SendExecuteRequest = Action; export declare type ExecuteCell = Action; export declare type ExecuteAllCells = Action; export declare type ExecuteAllCellsAbove = Action; export declare type ExecuteAllCellsBelow = Action; export declare type ExecuteFocusedCell = Action; export declare type ExecuteCanceled = Action; export declare type ExecuteFailed = ErrorAction; export declare type SetExecutionStateAction = Action; export declare type EnqueueAction = Action; export declare type ClearMessageQueue = Action; export declare const sendExecuteRequest: { (payload: HasCell): { type: "SEND_EXECUTE_REQUEST"; payload: HasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "SEND_EXECUTE_REQUEST"; payload: HasCell; }; }; export declare const executeCell: { (payload: HasCell): { type: "EXECUTE_CELL"; payload: HasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "EXECUTE_CELL"; payload: HasCell; }; }; export declare const executeAllCells: { (payload: HasContent): { type: "EXECUTE_ALL_CELLS"; payload: HasContent; }; with>(partial: U): (payload: Pick>) => { type: "EXECUTE_ALL_CELLS"; payload: HasContent; }; }; export declare const executeAllCellsAbove: { (payload: HasContent & { id?: string | undefined; }): { type: "EXECUTE_ALL_CELLS_ABOVE"; payload: HasContent & { id?: string | undefined; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "EXECUTE_ALL_CELLS_ABOVE"; payload: HasContent & { id?: string | undefined; }; }; }; export declare const executeAllCellsBelow: { (payload: HasContent & { id?: string | undefined; }): { type: "EXECUTE_ALL_CELLS_BELOW"; payload: HasContent & { id?: string | undefined; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "EXECUTE_ALL_CELLS_BELOW"; payload: HasContent & { id?: string | undefined; }; }; }; export declare const executeFocusedCell: { (payload: HasContent): { type: "EXECUTE_FOCUSED_CELL"; payload: HasContent; }; with>(partial: U): (payload: Pick>) => { type: "EXECUTE_FOCUSED_CELL"; payload: HasContent; }; }; export declare const executeCanceled: { (payload: HasCell & { code?: string | undefined; }): { type: "EXECUTE_CANCELED"; payload: HasCell & { code?: string | undefined; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"contentRef", keyof U> | import("utility-types").SetDifference<"id", keyof U>>) => { type: "EXECUTE_CANCELED"; payload: HasCell & { code?: string | undefined; }; }; }; export declare const executeFailed: (payload: MaybeHasContent & { id?: string | undefined; } & { error: Error; code?: string | undefined; }) => { type: "EXECUTE_FAILED"; payload: MaybeHasContent & { id?: string | undefined; } & { error: Error; code?: string | undefined; }; error: true; }; export declare const setExecutionState: { (payload: HasKernel & { kernelStatus: string; }): { type: "SET_EXECUTION_STATE"; payload: HasKernel & { kernelStatus: string; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"kernelStatus", keyof U>>) => { type: "SET_EXECUTION_STATE"; payload: HasKernel & { kernelStatus: string; }; }; }; export declare const enqueueAction: { (payload: HasCell): { type: "ENQUEUE_ACTION"; payload: HasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "ENQUEUE_ACTION"; payload: HasCell; }; }; export declare const clearMessageQueue: () => { type: "CLEAR_MESSAGE_QUEUE"; };