import { PaymentConfig } from './PaymentConfig'; export declare type PaymentErrors = { [key in keyof PaymentConfig]?: DetailedPaymentError[]; }; export declare type DetailedPaymentError = { code: string; message: string; }; export declare function addError(errors: PaymentErrors, key: keyof PaymentErrors, error: DetailedPaymentError): PaymentErrors;