import type { IMerchantAppointParam } from "../../../../types";
import type { IPaymentApiResponse, PaymentMountOptions } from '../type';
import { EventCallbackCode } from '../type';
import type { PaymentSubmitResult, ErrorPayload } from "../../../../modern/tools";
export declare function adaptSubmitResult(result: PaymentSubmitResult): IPaymentApiResponse;
export declare function adaptErrorToEventCallback(error: ErrorPayload): {
    code: EventCallbackCode;
    message: string;
};
/**
 * 将老架构的 appearance 格式转换为新架构格式
 *
 * 转换规则：
 * 1. theme: kebab-case → camelCase（如 'nostalgic-gray' → 'nostalgicGray'），其余保持不变
 * 2. variables: 直接透传（kebab-case CSS 变量 key-value）
 * 3. card.showBrandIcon → displaySetting.showCardBrandIcon
 * 4. layout: 直接透传
 */
export declare function adaptAppearance(appearance?: PaymentMountOptions['appearance'], merchantAppointParam?: IMerchantAppointParam): any;
