import { MissingPostalCodeError, InvalidPostalCodeError, InvalidAddressError, GenericShippingRatesError } from './service-plugins-types.js'; /** * Missing postal code error. Throw this error when a postal code is not provided in the request. This error tells Wix that a valid postal code is required to calculate the shipping rate. You can optionally provide error data to help debug the issue. Error data you provide appears in the monitoring log but is not exposed to the user. This error may block the site visitor from proceeding to checkout, so throw it only if there is no other way to proceed. */ export declare class MissingPostalCodeWixError extends Error { /** @hidden */ httpCode: number; /** @hidden */ statusCode: string; /** @hidden */ applicationCode: string; /** @hidden */ name: string; /** @hidden */ errorSchemaName: string; /** @hidden */ errorType: string; /** @hidden */ spiErrorData: object; data: MissingPostalCodeError; constructor(data?: MissingPostalCodeError); /** @hidden */ static readonly __type = "wix_spi_error"; } /** * Invalid postal code error. Throw this error when an invalid postal code is provided in the request. This error tells Wix that a valid postal code is required to calculate the shipping rate. You can optionally provide error data to help debug the issue. Error data you provide appears in the monitoring log but is not exposed to the user. This error may block the site visitor from proceeding to checkout, so throw it only if there is no other way to proceed. */ export declare class InvalidPostalCodeWixError extends Error { /** @hidden */ httpCode: number; /** @hidden */ statusCode: string; /** @hidden */ applicationCode: string; /** @hidden */ name: string; /** @hidden */ errorSchemaName: string; /** @hidden */ errorType: string; /** @hidden */ spiErrorData: object; data: InvalidPostalCodeError; constructor(data?: InvalidPostalCodeError); /** @hidden */ static readonly __type = "wix_spi_error"; } /** * Invalid address error. Throw this error when one or more fields in the address provided are invalid. This error tells Wix that more address details are needed to calculate the shipping rate. Wix may then prompt the user to provide more detailed address information. The error data must include the invalid fields in the address. For example: `ShippingDestination.subdivision`. */ export declare class InvalidAddressWixError extends Error { /** @hidden */ httpCode: number; /** @hidden */ statusCode: string; /** @hidden */ applicationCode: string; /** @hidden */ name: string; /** @hidden */ errorSchemaName: string; /** @hidden */ errorType: string; /** @hidden */ spiErrorData: object; data: InvalidAddressError; constructor(data?: InvalidAddressError); /** @hidden */ static readonly __type = "wix_spi_error"; } /** * Generic shipping rate calculation error. Throw this error for cases the other errors don't cover. You can optionally provide error data to help debug the issue. Error data you provide appears in the monitoring log but is not exposed to the user. This error may block the site visitor from proceeding to checkout, so throw it only if there is no other way to proceed. */ export declare class GenericShippingRatesWixError extends Error { /** @hidden */ httpCode: number; /** @hidden */ statusCode: string; /** @hidden */ applicationCode: string; /** @hidden */ name: string; /** @hidden */ errorSchemaName: string; /** @hidden */ errorType: string; /** @hidden */ spiErrorData: object; data: GenericShippingRatesError; constructor(data?: GenericShippingRatesError); /** @hidden */ static readonly __type = "wix_spi_error"; }