import { BaseError } from 'make-error'; import type { HttpsRequestOptions as HTTPSOptions, Headers, HttpsRequestOptions } from '@nativescript-community/https'; export declare class CustomError extends BaseError { customErrorConstructorName: string; showAsSnack?: boolean; isCustomError: boolean; assignedLocalData: any; silent?: boolean; _customStack?: string; sentryReportTranslatedName: boolean; get extraData(): { errorType: string; data: any; }; static fromObject(data: any): CustomError; constructor(props?: any, customErrorConstructorName?: string); get stack(): string; set stack(value: string); get localData(): any; toJSON(): { message: string; }; toData(): string; toString(): any; getMessage(): void; } export declare class TimeoutError extends CustomError { constructor(props?: any); } export declare class PermissionError extends CustomError { constructor(props?: any); } export declare class SilentError extends CustomError { constructor(props?: any); } export declare class IgnoreError extends CustomError { constructor(props?: any); } export declare class NoNetworkError extends CustomError { constructor(props?: any); } export interface HTTPErrorProps { statusCode: number; message: string; requestParams: HTTPSOptions; } export declare class NoSpaceLeftError extends CustomError { constructor(error: Error); } export interface HTTPErrorProps { statusCode: number; responseHeaders?: Headers; message: string; title?: string; requestParams: HTTPSOptions; } export declare class HTTPError extends CustomError { statusCode: number; requestParams: HTTPSOptions; sentryReportTranslatedName: boolean; constructor(props: HTTPErrorProps | HTTPError); } export declare function wrapNativeHttpException(error: any, requestParams: HttpsRequestOptions): any;