import { todo } from './todo-any'; interface ErrorDetails { status?: number; title?: string; source?: todo; } declare class E extends Error { detail: string; status: number; title?: string; source?: todo; isCardstackError: boolean; additionalErrors: todo; constructor(detail: todo, { status, title, source }?: ErrorDetails); toJSON(): { title: string | undefined; detail: string; code: number; source: any; }; static withJsonErrorHandling(ctxt: todo, fn: todo): Promise; } export = E;