import type { CreatePaymentMethodResponse, ThreeDsRequiredCreateResult } from "@fluid-app/portal-core/pay-types";
/**
 * Build the subscription create-payment-method onSuccess handler. On
 * three_ds_required it hands off to the 3DS flow (no bind/close — begin()
 * resolves at modal-open). On a created PM it runs the legacy created path with
 * the new payment method id (the caller routes dropdown-vs-banner inside
 * onCreated).
 */
export declare function buildSubscriptionCardAddSuccess(deps: {
    begin: (created: ThreeDsRequiredCreateResult) => Promise<void>;
    onCreated: (paymentMethodId: number) => void;
}): (response: CreatePaymentMethodResponse) => Promise<void>;
//# sourceMappingURL=subscription-card-add-success.d.ts.map