import { JSONObject, MediaBundle } from "@nteract/commutable"; import { HeaderDataProps } from "@nteract/types"; import { Action, ErrorAction, HasContent, MaybeHasContent } from "../utils"; export declare const TOGGLE_HEADER_EDITOR = "CORE/TOGGLE_HEADER_EDITOR"; export declare const UPDATE_FILE_TEXT = "UPDATE_FILE_TEXT"; export declare const UPDATE_DISPLAY = "UPDATE_DISPLAY"; export declare const UPDATE_DISPLAY_FAILED = "UPDATE_DISPLAY_FAILED"; export declare const OVERWRITE_METADATA_FIELDS = "CORE/OVERWRITE_METADATA_FIELDS"; export declare const OVERWRITE_METADATA_FIELD = "OVERWRITE_METADATA_FIELD"; export declare const DELETE_METADATA_FIELD = "DELETE_METADATA_FIELD"; export declare type ToggleHeaderEditor = Action; export declare type UpdateFileText = Action; export declare type UpdateDisplay = Action; export declare type UpdateDisplayFailed = ErrorAction; export declare type OverwriteMetadataFields = Action>; export declare type OverwriteMetadataField = Action; export declare type DeleteMetadataField = Action; export declare const toggleHeaderEditor: { (payload: HasContent): { type: "CORE/TOGGLE_HEADER_EDITOR"; payload: HasContent; }; with>(partial: U): (payload: Pick>) => { type: "CORE/TOGGLE_HEADER_EDITOR"; payload: HasContent; }; }; export declare const updateFileText: { (payload: HasContent & { text: string; }): { type: "UPDATE_FILE_TEXT"; payload: HasContent & { text: string; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"text", keyof U>>) => { type: "UPDATE_FILE_TEXT"; payload: HasContent & { text: string; }; }; }; export declare const updateDisplay: { (payload: HasContent & { content: { output_type: "update_display_data"; data: MediaBundle; metadata: JSONObject; transient: { display_id: string; }; }; }): { type: "UPDATE_DISPLAY"; payload: HasContent & { content: { output_type: "update_display_data"; data: MediaBundle; metadata: JSONObject; transient: { display_id: string; }; }; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"content", keyof U>>) => { type: "UPDATE_DISPLAY"; payload: HasContent & { content: { output_type: "update_display_data"; data: MediaBundle; metadata: JSONObject; transient: { display_id: string; }; }; }; }; }; export declare const updateDisplayFailed: (payload: HasContent & { error: Error; code?: string | undefined; }) => { type: "UPDATE_DISPLAY_FAILED"; payload: HasContent & { error: Error; code?: string | undefined; }; error: true; }; export declare const overwriteMetadataFields: { (payload: MaybeHasContent & Partial): { type: "CORE/OVERWRITE_METADATA_FIELDS"; payload: MaybeHasContent & Partial; }; with>>(partial: U): (payload: Pick, import("utility-types").SetDifference<"authors", keyof U> | import("utility-types").SetDifference<"description", keyof U> | import("utility-types").SetDifference<"tags", keyof U> | import("utility-types").SetDifference<"title", keyof U> | import("utility-types").SetDifference<"contentRef", keyof U>>) => { type: "CORE/OVERWRITE_METADATA_FIELDS"; payload: MaybeHasContent & Partial; }; }; export declare const overwriteMetadataField: { (payload: HasContent & { field: string; value: any; }): { type: "OVERWRITE_METADATA_FIELD"; payload: HasContent & { field: string; value: any; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"field", keyof U> | import("utility-types").SetDifference<"value", keyof U>>) => { type: "OVERWRITE_METADATA_FIELD"; payload: HasContent & { field: string; value: any; }; }; }; export declare const deleteMetadataField: { (payload: HasContent & { field: string; }): { type: "DELETE_METADATA_FIELD"; payload: HasContent & { field: string; }; }; with>(partial: U): (payload: Pick | import("utility-types").SetDifference<"field", keyof U>>) => { type: "DELETE_METADATA_FIELD"; payload: HasContent & { field: string; }; }; };