import { AxiosError } from 'axios'; export interface IErrorWithCode extends Error { statusCode: number; report?: boolean; } interface IErrorExtra { report?: boolean; [key: string]: any; } /** * Creates an error object with `statusCode` as a property */ export declare const errorWithCode: (statusCode: number, message: string, extraObj?: IErrorExtra) => IErrorWithCode; export default errorWithCode; export declare function shouldReport(error: Error | IErrorWithCode): boolean; /** * Creates an errorWithCode from Auth0 Error */ export declare function fromAuth0Error(error: AxiosError | Error): Error; //# sourceMappingURL=error-with-code.d.ts.map