import { FieldError } from "../generated-client"; export declare class DoorDashError extends Error { errorCode: string; message: string; fieldErrors?: Array; constructor(errorCode: string, message: string, fieldErrors?: Array); static mapCodeToError(errorCode: string, message: string, fieldErrors: Array): DoorDashAuthorizationError | DoorDashCancelNotAllowedError | DoorDashDuplicatedDeliveryIdError | DoorDashInvalidDeliveryError | DoorDashUnknownDeliveryError | DoorDashUpdatedNotAllowedError | DoorDashValidationFieldError | DoordashServiceFaultError | DoorDashOtherError; } export declare class DoorDashCancelNotAllowedError extends DoorDashError { } export declare class DoorDashDuplicatedDeliveryIdError extends DoorDashError { } export declare class DoorDashInvalidDeliveryError extends DoorDashError { } export declare class DoorDashUnknownDeliveryError extends DoorDashError { } export declare class DoorDashUpdatedNotAllowedError extends DoorDashError { } export declare class DoorDashValidationFieldError extends DoorDashError { } export declare class DoorDashOtherError extends DoorDashError { } export declare class DoorDashAuthenticationError extends DoorDashError { } export declare class DoorDashAuthorizationError extends DoorDashError { } export declare class DoorDashThrottledError extends DoorDashError { } export declare class DoordashServiceFaultError extends DoorDashError { }