/** * Gets the function name, or returns if it's unnamed. */ export declare const getFunctionName: (fn: Function) => string; /** * Error context object thrown. */ export declare class ErrorContext { readonly error: Error; readonly innerError?: ErrorContext | undefined; readonly epicName: string; readonly epicSource: string; constructor(sourceFunction: Function, error: Error, innerError?: ErrorContext | undefined); /** * Gets the error's stacktrace. */ readonly stack: string | undefined; /** * Returns the innermost, original error that occurred. */ readonly innermostError: ErrorContext; }