import type { CreatePaymentMethodResponse, ThreeDsRequiredCreateResult } from "@fluid-app/portal-core/pay-types";
/**
 * Build the create-payment-method onSuccess handler. On three_ds_required it
 * hands off to the 3DS flow and leaves the card dialog OPEN (begin() resolves
 * at modal-open, not flow-completion). On a created PM it runs the legacy
 * created path (invalidate + close + toast).
 */
export declare function buildProfileCardAddSuccess(deps: {
    begin: (created: ThreeDsRequiredCreateResult) => Promise<void>;
    onCreated: () => void;
}): (response: CreatePaymentMethodResponse) => Promise<void>;
//# sourceMappingURL=profile-card-add-success.d.ts.map