import type { task_id } from '../../types/string_token';
import type { ALL_ERRORS } from '../0-index';
/**
 * Represents a serialized error or custom Promptbook error
 *
 * Note: [🚉] This is fully serializable as JSON
 */
export type ErrorJson = {
    /**
     * The unique identifier of the error
     */
    readonly id?: task_id;
    /**
     * The type of the error
     */
    readonly name: keyof typeof ALL_ERRORS;
    /**
     * The message of the error
     */
    readonly message: string;
    /**
     * The stack trace of the error
     */
    readonly stack?: string;
};
