import { PartialJSONObject } from '@lumino/coreutils'; /** * Interfaces for `IExecuteReplyMsg.user_expressisons` */ export interface IBaseExpressionResult extends PartialJSONObject { status: string; } export interface IExpressionOutput extends IBaseExpressionResult { status: 'ok'; data: PartialJSONObject; metadata: PartialJSONObject; } export interface IExpressionError extends IBaseExpressionResult { status: 'error'; traceback: string[]; ename: string; evalue: string; } export declare type IExpressionResult = IExpressionError | IExpressionOutput; export declare function isOutput(output: IExpressionResult): output is IExpressionOutput; export declare function isError(output: IExpressionResult): output is IExpressionError;