import { error } from "./utils.js"; //#region src/errors.d.ts /** Represents a SDK error */ declare class SDKError extends Error { constructor(message: string, options?: ErrorOptions); } /** Represents a error thrown while making an API request */ declare class SDKRequestError extends SDKError { readonly path: string; constructor(message: string, path: string, options?: ErrorOptions); } /** Represents a error thrown when server responds with `Bad Request` */ declare class SDKBadRequestError extends SDKRequestError { constructor(message: string, path: string, options?: ErrorOptions); } /** Represents a error thrown when server responds with `Forbidden` */ declare class SDKForbiddenError extends SDKRequestError { constructor(message: string, path: string, options?: ErrorOptions); } /** Represents a error thrown when server responds with `Unauthorized` */ declare class SDKUnauthorizedError extends SDKRequestError { constructor(message: string, path: string, options?: ErrorOptions); } /** Represents a error thrown when server responds with `Request Failed` */ declare class SDKRequestFailedError extends SDKRequestError { constructor(message: string, path: string, options?: ErrorOptions); } /** Represents a error thrown when server responds with `Not Found` */ declare class SDKNotFoundError extends SDKRequestError { constructor(message: string, path: string, options?: ErrorOptions); } /** Represents a error thrown when server responds with `Internal Server Error` */ declare class SDKInternalServerError extends SDKRequestError { constructor(message: string, path: string, options?: ErrorOptions); } /** * Represents a error thrown when client is requesting for some resources which does not exists. * For example requesting for a product with specific `product_id` but that doesn't exists. */ declare class SDKInputNotFoundError, false>> extends SDKError { readonly error: T['error']; readonly code: T['code']; constructor(result: T, options?: ErrorOptions); } //#endregion export { SDKBadRequestError, SDKError, SDKForbiddenError, SDKInputNotFoundError, SDKInternalServerError, SDKNotFoundError, SDKRequestError, SDKRequestFailedError, SDKUnauthorizedError }; //# sourceMappingURL=errors.d.ts.map