import { BaseResource } from './BaseResource.js'; import type { RequestOptions } from '../types/common.js'; import type { PaymentSetupConfig, PaymentSetupGetParams } from '../types/paymentSetup.js'; /** * Payment setup config resource (`tagada.paymentSetup.*`). * * Returns the runtime payment configuration for a store: which methods * are enabled, which processors handle them, and the metadata each * needs to render. The shape is `Record<"{method}" | "{method}:{provider}", PaymentMethodConfig>`. * * Used by partners to discover what each merchant has enabled before * rendering the payment UI — without needing to create a checkout session. * * @example * const setup = await tagada.paymentSetup.get('store_xxx'); * if (setup.apple_pay?.enabled && setup.apple_pay.provider === 'apple_pay') { * renderNativeApplePayButton(); * } else if (setup['apple_pay:stripe']?.enabled) { * renderStripeExpressButton(); * } */ export declare class PaymentSetup extends BaseResource { /** * Get the paymentSetupConfig for a store. * * Backed by `GET /v1/stores/:id/payment-setup` — currently in the * W4.B1 backend workstream. Until that endpoint ships, this method * returns a 404 with `code: 'route_not_implemented'`. See the * [implementation plan](https://docs.tagadapay.com/internal/decisions/2026-04-29-partner-s2s-architecture) * for status. */ get(storeId: string, params?: PaymentSetupGetParams, opts?: RequestOptions): Promise; } //# sourceMappingURL=PaymentSetup.d.ts.map