import type { HoistException, TimeoutException, TimeoutExceptionConfig } from './Types'; /** * Standardized Exception/Error objects. * * The main entry point for this class is the create() method. * Applications can use this method to create various generic runtime exceptions. * @see ExceptionHandler.handleException */ export declare class Exception { /** * Create and return a HoistException * * See {@link XH.exception} - an alias for this factory off of `XH`. * * @param src - If a native JS Error, it will be enhanced into a HoistException and returned. * If a plain object, all properties will be set on a new HoistException. * Other inputs will be treated as the `message` of a new HoistException. */ static create(src: unknown): HoistException; /** Create an Error for when an operation (e.g. a Promise) times out. */ static timeout(config: TimeoutExceptionConfig): TimeoutException; private static createInternal; } export declare function isHoistException(src: unknown): src is HoistException;