import BotchedError from './BotchedError'; export interface MaybeDetailedError { data?: { status?: any; statusCode?: any; headers?: any; id?: any; code?: any; title?: any; source?: any; links?: any; meta?: any; } | any; status?: any; statusCode?: any; errors?: any; headers?: any; id?: any; code?: any; title?: any; source?: any; links?: any; meta?: any; } /** * Create a botch http error or return the existing error if it is already a botched http error. * This is NOT safe to use if errors may contain sensitive information because details may be leaked. * * See `wrap` for a safe alternative * * @param {Error} err * @returns {BotchedError} */ declare function botch(err: Error & MaybeDetailedError): BotchedError; export default botch;