import { JSONObject, OnDiskOutput } from "@nteract/commutable"; import { PayloadMessage } from "@nteract/types"; import { Action, HasCell, HasContent, MaybeHasCell } from "../utils"; export declare const PROMPT_INPUT_REQUEST = "PROMPT_INPUT_REQUEST"; export declare const SEND_INPUT_REPLY = "SEND_INPUT_REPLY"; export declare const UNHIDE_ALL = "UNHIDE_ALL"; export declare const CLEAR_ALL_OUTPUTS = "CLEAR_ALL_OUTPUTS"; export declare const TOGGLE_CELL_INPUT_VISIBILITY = "TOGGLE_CELL_INPUT_VISIBILITY"; export declare const TOGGLE_CELL_OUTPUT_VISIBILITY = "TOGGLE_CELL_OUTPUT_VISIBILITY"; export declare const CLEAR_OUTPUTS = "CLEAR_OUTPUTS"; export declare const UPDATE_OUTPUT_METADATA = "UPDATE_OUTPUT_METADATA"; export declare const APPEND_OUTPUT = "APPEND_OUTPUT"; export declare const ACCEPT_PAYLOAD_MESSAGE = "ACCEPT_PAYLOAD_MESSAGE"; export declare const TOGGLE_OUTPUT_EXPANSION = "TOGGLE_OUTPUT_EXPANSION"; export declare type PromptInputRequest = Action; export declare type SendInputReply = Action; export declare type UnhideAll = Action; export declare type ClearAllOutputs = Action; export declare type ToggleCellInputVisibility = Action; export declare type ToggleCellOutputVisibility = Action; export declare type ClearOutputs = Action; export declare type UpdateOutputMetadata = Action; export declare type AppendOutput = Action; export declare type AcceptPayloadMessage = Action; export declare type ToggleCellExpansion = Action; export declare const promptInputRequest: { (payload: HasCell & { prompt: string; password: boolean; }): { type: "PROMPT_INPUT_REQUEST"; payload: HasCell & { prompt: string; password: boolean; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U> | import("utility-types").SetDifference<"prompt", keyof U> | import("utility-types").SetDifference<"password", keyof U>>) => { type: "PROMPT_INPUT_REQUEST"; payload: HasCell & { prompt: string; password: boolean; }; }; }; export declare const sendInputReply: { (payload: HasContent & { value: string; }): { type: "SEND_INPUT_REPLY"; payload: HasContent & { value: string; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"value", keyof U>>) => { type: "SEND_INPUT_REPLY"; payload: HasContent & { value: string; }; }; }; export declare const unhideAll: { (payload: HasContent & { inputHidden?: boolean | undefined; outputHidden?: boolean | undefined; }): { type: "UNHIDE_ALL"; payload: HasContent & { inputHidden?: boolean | undefined; outputHidden?: boolean | undefined; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"inputHidden", keyof U> | import("utility-types").SetDifference<"outputHidden", keyof U>>) => { type: "UNHIDE_ALL"; payload: HasContent & { inputHidden?: boolean | undefined; outputHidden?: boolean | undefined; }; }; }; export declare const clearAllOutputs: { (payload: HasContent): { type: "CLEAR_ALL_OUTPUTS"; payload: HasContent; }; with>(partial: U): (payload: Pick>) => { type: "CLEAR_ALL_OUTPUTS"; payload: HasContent; }; }; export declare const toggleCellInputVisibility: { (payload: MaybeHasCell): { type: "TOGGLE_CELL_INPUT_VISIBILITY"; payload: MaybeHasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "TOGGLE_CELL_INPUT_VISIBILITY"; payload: MaybeHasCell; }; }; export declare const toggleCellOutputVisibility: { (payload: MaybeHasCell): { type: "TOGGLE_CELL_OUTPUT_VISIBILITY"; payload: MaybeHasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "TOGGLE_CELL_OUTPUT_VISIBILITY"; payload: MaybeHasCell; }; }; export declare const clearOutputs: { (payload: MaybeHasCell): { type: "CLEAR_OUTPUTS"; payload: MaybeHasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "CLEAR_OUTPUTS"; payload: MaybeHasCell; }; }; export declare const updateOutputMetadata: { (payload: HasCell & { metadata: JSONObject; index: number; mediaType: string; }): { type: "UPDATE_OUTPUT_METADATA"; payload: HasCell & { metadata: JSONObject; index: number; mediaType: string; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U> | import("utility-types").SetDifference<"metadata", keyof U> | import("utility-types").SetDifference<"index", keyof U> | import("utility-types").SetDifference<"mediaType", keyof U>>) => { type: "UPDATE_OUTPUT_METADATA"; payload: HasCell & { metadata: JSONObject; index: number; mediaType: string; }; }; }; export declare const appendOutput: { (payload: HasCell & { output: OnDiskOutput; }): { type: "APPEND_OUTPUT"; payload: HasCell & { output: OnDiskOutput; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U> | import("utility-types").SetDifference<"output", keyof U>>) => { type: "APPEND_OUTPUT"; payload: HasCell & { output: OnDiskOutput; }; }; }; export declare const toggleOutputExpansion: { (payload: HasCell): { type: "TOGGLE_OUTPUT_EXPANSION"; payload: HasCell; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"id", keyof U>>) => { type: "TOGGLE_OUTPUT_EXPANSION"; payload: HasCell; }; }; export declare const acceptPayloadMessage: { (payload: HasCell & { payload: PayloadMessage; }): { type: "ACCEPT_PAYLOAD_MESSAGE"; payload: HasCell & { payload: PayloadMessage; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"contentRef", keyof U> | import("utility-types").SetDifference<"id", keyof U>>) => { type: "ACCEPT_PAYLOAD_MESSAGE"; payload: HasCell & { payload: PayloadMessage; }; }; };