export interface JsError extends Error { toString?: () => string; } export interface AssertionError extends JsError { expected: any; actual: any; operator: string; showDiff?: boolean; } export interface HtmlDiffAssertionError extends JsError { diff: { expected: string; actual: string; comparison: string; }; label: string; } export interface PprintAssertionError extends JsError { diff: { expected: string; actual: string; }; toString: () => string; } export type TestError = JsError | AssertionError | PprintAssertionError | HtmlDiffAssertionError; export declare const pprintAssertionError: (message: string, expected: string, actual: string) => PprintAssertionError; export declare const isPprintAssertionError: (err: TestError) => err is PprintAssertionError; export declare const isHTMLDiffError: (err: TestError) => err is HtmlDiffAssertionError; export declare const isAssertionError: (err: TestError) => err is AssertionError;