import { EditorConfiguration } from "../../config/types";
import { ConfirmationDialogHandle } from "../ConfirmationDialog";
import { ExecutionResult } from "../services/editService";
import type { ErrorToastPayload } from "./errorToast";
export declare function handleErrorResult(result: ExecutionResult<unknown>, ui: {
    showErrorToast: (error: ErrorToastPayload) => void;
    confirmationDialogRef: React.RefObject<ConfirmationDialogHandle | null>;
}, state: {
    configuration: EditorConfiguration;
}): true | undefined;
