@flopay/shared 1.14.5 → 1.14.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/before-button-click.d.ts +11 -0
  2. package/dist/card-setup-overlay-theme.d.ts +34 -0
  3. package/dist/card-setup-surface.d.ts +24 -0
  4. package/dist/card-setup-theme.d.ts +62 -0
  5. package/dist/card-setup.d.ts +7 -0
  6. package/dist/checkout-gateway-rules.d.ts +50 -0
  7. package/dist/checkout-outcomes.d.ts +14 -0
  8. package/dist/checkout-payload.d.ts +86 -0
  9. package/dist/checkout-process-request.d.ts +57 -0
  10. package/dist/config.d.ts +29 -0
  11. package/dist/constants.d.ts +452 -0
  12. package/dist/display.d.ts +64 -0
  13. package/dist/email-validation.d.ts +2 -0
  14. package/dist/errors.d.ts +53 -0
  15. package/dist/external-method-recovery.d.ts +24 -0
  16. package/dist/friendly-message.d.ts +5 -0
  17. package/dist/future-use.d.ts +24 -0
  18. package/dist/idempotency.d.ts +55 -0
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.d.ts +67 -3739
  21. package/dist/index.mjs +1 -1
  22. package/dist/inline-session-cache.d.ts +20 -0
  23. package/dist/instrument-dispatch.d.ts +28 -0
  24. package/dist/instruments.d.ts +51 -0
  25. package/dist/payment-logos.generated.d.ts +1 -0
  26. package/dist/payment-method-setup-advertisement.d.ts +67 -0
  27. package/dist/paypal-buyer-identity.d.ts +46 -0
  28. package/dist/paypal-channel.d.ts +77 -0
  29. package/dist/paypal-environment.d.ts +14 -0
  30. package/dist/postal-code-lookup.d.ts +19 -0
  31. package/dist/postal-code-validation.d.ts +46 -0
  32. package/dist/primary-tile-style.d.ts +46 -0
  33. package/dist/recent-completion.d.ts +2 -0
  34. package/dist/saved-payment-methods.d.ts +96 -0
  35. package/dist/sentry-filter.d.ts +21 -0
  36. package/dist/stripe-appearance.d.ts +19 -0
  37. package/dist/stripe-paypal-presentation.d.ts +42 -0
  38. package/dist/telemetry-failure.d.ts +14 -0
  39. package/dist/telemetry.d.ts +161 -0
  40. package/dist/types.d.ts +1747 -0
  41. package/dist/uuid.d.ts +19 -0
  42. package/dist/validation.d.ts +19 -0
  43. package/dist/vault-submit-theme.d.ts +22 -0
  44. package/dist/vault-theme.d.ts +28 -0
  45. package/dist/vault-verification.d.ts +45 -0
  46. package/dist/wallet-elements-mode.d.ts +27 -0
  47. package/dist/wallet-sheet-window.d.ts +44 -0
  48. package/package.json +4 -3
  49. package/dist/index.d.cts +0 -3739
@@ -0,0 +1,11 @@
1
+ import { FloPayError } from './errors.js';
2
+ import type { CheckoutButtonMethod } from './types.js';
3
+ /** The buyer-facing name of a checkout button method ("Card" for anything unknown). */
4
+ export declare function getButtonMethodLabel(method: CheckoutButtonMethod): string;
5
+ /**
6
+ * A value thrown by a merchant's before-click hook, as the `FloPayError` the
7
+ * checkout shows and reports: a `FloPayError` is kept, an `Error` keeps its
8
+ * message, anything else becomes "<Method> before-click hook failed.". All are
9
+ * `validation_error`s unless the hook threw a `FloPayError` of its own.
10
+ */
11
+ export declare function normalizeBeforeButtonClickError(method: CheckoutButtonMethod, err: unknown): FloPayError;
@@ -0,0 +1,34 @@
1
+ import type { ButtonsLayoutStyles, FloPayAppearance } from './types.js';
2
+ /** The states of the processing / outcome modal a setup surface draws. */
3
+ export type ProcessingOverlayStatus = 'processing' | 'success' | 'error';
4
+ /**
5
+ * Visual treatment for the processing / outcome modal. Framework-free: the
6
+ * panel is a plain style object, so every UI binding draws the same modal
7
+ * from one derivation (TeamFloPay/sdk#410, CTO decision 1).
8
+ */
9
+ export interface ProcessingOverlayThemeColors {
10
+ /** Panel surface (background, border, radius, shadow) plus base text color and font. */
11
+ panel: Record<string, string | number>;
12
+ spinnerTrackColor: string;
13
+ spinnerAccentColor: string;
14
+ labelColors: Record<ProcessingOverlayStatus, string>;
15
+ /** Secondary copy: the success note and the failure message. */
16
+ noteColor: string;
17
+ }
18
+ /**
19
+ * The resolved look an overlay is drawn from: a preset bundle, or the
20
+ * effective appearance and buttons layout once a stored theme's overrides are
21
+ * merged over it. A `ThemeBundle` is one.
22
+ */
23
+ export interface CardSetupOverlaySource {
24
+ appearance?: FloPayAppearance | undefined;
25
+ buttonsLayout: ButtonsLayoutStyles;
26
+ }
27
+ /**
28
+ * The card-setup processing / success / error modal for a named preset (or a
29
+ * stored theme resolved over one): the panel reuses the credit-card pane
30
+ * surface and typography; processing wears the primary on the spinner; success
31
+ * and error keep semantic accents. A missing appearance reads as an empty one,
32
+ * which resolves to the neutral light defaults.
33
+ */
34
+ export declare function computeCardSetupOverlayTheme({ appearance, buttonsLayout, }: CardSetupOverlaySource): ProcessingOverlayThemeColors;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Surface treatment for the card-setup container — the same complete
3
+ * `cardFormContainer` look the checkout's credit-card pane wears for a preset —
4
+ * merged beneath the merchant's `containerStyle` with deterministic precedence:
5
+ *
6
+ * 1. Every `containerStyle` property wins over the preset value for the same
7
+ * property.
8
+ * 2. Declarations are applied preset-first, then `containerStyle` in the
9
+ * merchant's own order, so a `containerStyle` longhand refines a preset
10
+ * shorthand of the same family (`borderColor` recolors the preset `border`;
11
+ * `paddingTop` adjusts one side) exactly as CSS cascades a later declaration.
12
+ * 3. Background is the one family a longhand cannot refine: a color cannot
13
+ * displace a preset gradient's image layer. Any `background*` member in
14
+ * `containerStyle` therefore replaces the preset's background family
15
+ * entirely, so a merchant color never shows a glass gradient through it.
16
+ *
17
+ * Raw `VaultCardThemeColors` supply no surface, and neither does `classic`
18
+ * unless a stored `buttonsStyles.cardFormContainer` is given (sdk#447); without
19
+ * a surface `containerStyle` applies alone — byte-for-byte the released behavior.
20
+ *
21
+ * Framework-free (any style-object type), so every UI binding merges the same
22
+ * way (TeamFloPay/sdk#410, CTO decision 1).
23
+ */
24
+ export declare function mergeCardSetupSurface<Style extends object>(surface: Style | undefined, containerStyle: Style | undefined): Style | undefined;
@@ -0,0 +1,62 @@
1
+ import { type ProcessingOverlayThemeColors } from './card-setup-overlay-theme.js';
2
+ import type { ButtonsLayoutStyles, FloPayAppearance, ThemeId, VaultCardThemeColors } from './types.js';
3
+ /**
4
+ * Merge a `buttonsStyles` override over a base buttons layout exactly as
5
+ * `FloPayCheckout` (its `SplitCardForm`) does: top-level members replace the
6
+ * base's, and each style group in {@link MERGED_BUTTONS_GROUPS} merges property
7
+ * by property. A group that is not an object (malformed persisted data) is
8
+ * ignored rather than spread, so it can never throw or leak junk keys.
9
+ */
10
+ export declare function mergeButtonsStyles(base: ButtonsLayoutStyles, override: ButtonsLayoutStyles | undefined): ButtonsLayoutStyles;
11
+ /** Inputs for {@link resolveCardSetupTheme}: the `FloPayCardSetup` theming props. */
12
+ export interface CardSetupThemeSource {
13
+ theme: ThemeId | VaultCardThemeColors;
14
+ appearance?: FloPayAppearance | undefined;
15
+ buttonsStyles?: ButtonsLayoutStyles | undefined;
16
+ }
17
+ /** Everything the card-setup surface paints, resolved from one stored theme. */
18
+ export interface CardSetupThemeResolution {
19
+ /**
20
+ * The hosted-widget directive: computed colors, raw colors passed through
21
+ * untouched, or `null` — the explicit classic reset.
22
+ */
23
+ vaultTheme: VaultCardThemeColors | null;
24
+ /** The pane surface laid beneath the merchant's `containerStyle`, if any. */
25
+ surface: Record<string, string | number> | undefined;
26
+ /** The outcome overlay's theme; `undefined` keeps the neutral modal. */
27
+ overlayTheme: ProcessingOverlayThemeColors | undefined;
28
+ /**
29
+ * The effective appearance (the override, else the preset's), for what a
30
+ * setup surface draws beside the hosted form: Stripe Elements and the method
31
+ * tiles. `undefined` for raw colors and for a bare `'classic'`.
32
+ */
33
+ appearance: FloPayAppearance | undefined;
34
+ /**
35
+ * The effective buttons layout (`buttonsStyles` merged over the preset's), for
36
+ * the wallet, PayPal and APM buttons and tiles. `undefined` for raw colors and
37
+ * for a bare `'classic'`.
38
+ */
39
+ buttonsLayout: ButtonsLayoutStyles | undefined;
40
+ }
41
+ /**
42
+ * Resolve the card-setup theming props the same way `FloPayCheckout` resolves
43
+ * its own, so one stored theme (`themePreset` → `theme`, plus `appearance` and
44
+ * `buttonsStyles`) renders the hosted card form identically on both surfaces:
45
+ *
46
+ * - An `appearance` override replaces the preset's appearance outright.
47
+ * - `buttonsStyles` merges over the preset's buttons layout
48
+ * ({@link mergeButtonsStyles}).
49
+ * - `'classic'` only means "no bundle base": overrides still apply over the
50
+ * default (empty) layout, and with none it keeps the historic `null` reset,
51
+ * no surface and the neutral overlay.
52
+ * - Raw `VaultCardThemeColors` pass through untouched; overrides are ignored.
53
+ * - Empty override groups count as absent; an unknown preset id resolves to
54
+ * `modern-light`.
55
+ *
56
+ * The effective appearance and layout drive every output: the hosted field
57
+ * colors and font, the hosted submit snapshot, the container surface and the
58
+ * outcome overlay, and they are returned as is for the Stripe Elements and the
59
+ * method buttons `FloPayPaymentMethodSetup` draws beside the hosted form
60
+ * (sdk#461).
61
+ */
62
+ export declare function resolveCardSetupTheme({ theme, appearance, buttonsStyles, }: CardSetupThemeSource): CardSetupThemeResolution;
@@ -0,0 +1,7 @@
1
+ import type { CheckoutSession } from './types.js';
2
+ /**
3
+ * Whether a read session is safe to mount in a no-charge card-setup surface.
4
+ * Both the explicit setup mode and the empty, zero-amount cart are required so
5
+ * a purchase session can never be mistaken for a bare card form.
6
+ */
7
+ export declare function isCardSetupCheckoutSession(session: CheckoutSession): boolean;
@@ -0,0 +1,50 @@
1
+ import type { CheckoutSession, GatewayEnvironment, PayPalApprovalPresentation, PayPalProviderObjectType } from './types.js';
2
+ /**
3
+ * The PayPal gateway fields the direct PayPal button needs: the session's
4
+ * `gateways.paypal`, or the normalized `data.paypal` copy of it.
5
+ */
6
+ export interface DirectPayPalGatewaySource {
7
+ /** The PayPal client id. */
8
+ publishableKey?: string | null;
9
+ environment?: GatewayEnvironment;
10
+ providerObjectType?: PayPalProviderObjectType;
11
+ approvalPresentation?: PayPalApprovalPresentation;
12
+ }
13
+ /** What the checkout hands its card form as `directPaypal`. */
14
+ export interface DirectPayPalConfig {
15
+ clientId: string;
16
+ environment?: GatewayEnvironment;
17
+ providerObjectType?: PayPalProviderObjectType;
18
+ approvalPresentation?: PayPalApprovalPresentation;
19
+ existingOrderId?: string;
20
+ }
21
+ /**
22
+ * The direct PayPal config for a session's PayPal gateway: its
23
+ * `publishableKey` is the PayPal client id, and `existingOrderId` is an order
24
+ * to resume instead of creating one. `undefined` when the gateway has no
25
+ * client id.
26
+ */
27
+ export declare function resolveDirectPaypalConfig(paypal: DirectPayPalGatewaySource | null | undefined, existingOrderId?: string): DirectPayPalConfig | undefined;
28
+ /**
29
+ * The buyer-country gate on the Stripe methods outside the wallet row (iDEAL,
30
+ * Bancontact, …). The buyer's live country (the AVS select, else the static
31
+ * `country`) is matched against `enabledPaymentMethodCountries`: a method
32
+ * without an entry, or with an empty list, has no gate. Without the map, the
33
+ * built-in country table ({@link filterStripeMethodsByCountry}) decides. With
34
+ * no country, nothing is filtered and `methods` is returned as it is.
35
+ */
36
+ export declare function filterStripeMethodsByCountryGate(methods: string[], country: string | null | undefined, enabledPaymentMethodCountries: Record<string, string[]> | undefined): string[];
37
+ /**
38
+ * Whether the session can route cards to a gateway the billing API processes
39
+ * entirely server-side behind the hosted vault form — today the Worldpay
40
+ * Corporate Gateway (TeamFloPay/backend#1563). Such a gateway has no browser
41
+ * runtime or credentials, and its payment references are not Stripe objects.
42
+ */
43
+ export declare function hasServerSideCardGateway(session: CheckoutSession | null | undefined): boolean;
44
+ /**
45
+ * Whether an open session can recover its hosted card form from
46
+ * `/vault/capture` when the read omitted the embedded block. A server-side
47
+ * card gateway is the explicit card capability; a terminal session has no
48
+ * form left to recover.
49
+ */
50
+ export declare function canRecoverHostedCardForm(session: CheckoutSession | null | undefined): boolean;
@@ -0,0 +1,14 @@
1
+ import type { CaptureMethod, CheckoutFailureOutcome } from './types.js';
2
+ /** Returns whether a checkout deliberately stops after placing an authorization hold. */
3
+ export declare function isAuthorizationOnlySession(session?: {
4
+ captureMethod?: CaptureMethod;
5
+ } | null): boolean;
6
+ /**
7
+ * Returns whether an outcome represents money settled for the active checkout.
8
+ *
9
+ * `requires_capture` remains successful for legacy automatic/PayPal flows, but
10
+ * can never be treated as settled for a manual-capture session.
11
+ */
12
+ export declare function isMoneySettledOutcome(outcome?: string | null, captureMethod?: CaptureMethod): boolean;
13
+ /** Collapses provider/backend reason strings into the SDK's closed failure vocabulary. */
14
+ export declare function normalizeCheckoutFailureOutcome(value: unknown): CheckoutFailureOutcome | undefined;
@@ -0,0 +1,86 @@
1
+ import type { CaptureMethod, CheckoutItem, CheckoutProduct, CheckoutSubscription, InlineSessionDraft } from './types.js';
2
+ interface CaptureMethodEligibilityParams {
3
+ captureMethod?: CaptureMethod;
4
+ products?: readonly CheckoutProduct[];
5
+ items?: readonly CheckoutItem[];
6
+ subscriptions?: readonly CheckoutSubscription[];
7
+ }
8
+ /**
9
+ * Reject authorisation-only checkout carts that contain a subscription.
10
+ *
11
+ * The backend remains authoritative; this shared preflight keeps every SDK
12
+ * creation style from mounting or redirecting to a checkout that cannot
13
+ * support manual capture.
14
+ *
15
+ * Subscription detection in the unified `products` shape is best-effort:
16
+ * `CheckoutProduct.type` is optional, so catalog-backed subscriptions that
17
+ * omit it are resolved and rejected by the authoritative backend validation.
18
+ */
19
+ export declare function assertCaptureMethodEligible(params: CaptureMethodEligibilityParams): void;
20
+ /**
21
+ * Whether a session may be created through the **detached** shell + claim flow
22
+ * (TeamFloPay/backend#1099).
23
+ *
24
+ * Detached creation is the default, but it is not universally available:
25
+ *
26
+ * - The billing API accepts `deferDataAttachment` only for Full checkouts
27
+ * (`IsDeferredCheckoutMode`), so `auto` and `confirm` are excluded.
28
+ * - A saved-payment session (`tokenizedData`) can be charged the moment it
29
+ * exists, so it must carry its cart from the start.
30
+ * - `deferDataAttachment: false` is the caller's explicit opt-out.
31
+ *
32
+ * This only decides how the SDK creates the session (detached shell or not).
33
+ * Which gateway processes the card is the billing API's decision, made from
34
+ * the merchant's configured gateways; the SDK never declares or filters it.
35
+ */
36
+ export declare function isDetachedSessionEligible(params: InlineSessionDraft): boolean;
37
+ /**
38
+ * Resolve the session-level currency, honoring the documented fallback:
39
+ * `session.currency ?? items[*].currency ?? subscriptions[*].currency ?? products[*].currency`.
40
+ *
41
+ * Returns the first non-blank currency found, or `null` when nothing is set.
42
+ * Empty and whitespace-only strings are treated as unset so they do not
43
+ * bypass the fallback chain.
44
+ *
45
+ * Post-#760 backends reject session-create requests without a session-level
46
+ * currency (`@IsNotEmpty`); callers should throw a validation error when
47
+ * this returns `null` rather than silently defaulting.
48
+ */
49
+ export declare function resolveSessionCurrency(sessionCurrency: string | undefined, items?: ReadonlyArray<{
50
+ currency?: string;
51
+ }> | undefined, subscriptions?: ReadonlyArray<{
52
+ currency?: string;
53
+ }> | undefined, products?: ReadonlyArray<{
54
+ currency?: string;
55
+ }> | undefined): string | null;
56
+ /**
57
+ * Fold legacy `items` + `subscriptions` arrays into the unified `products[]`
58
+ * shape introduced by backend #760. Items become `type: 'item'`,
59
+ * subscriptions become `type: 'subscription'`. The relative order is
60
+ * subscriptions-first then items, matching the order the previous payload
61
+ * builders emitted on the wire.
62
+ */
63
+ export declare function foldIntoProducts(items: readonly CheckoutItem[] | undefined, subscriptions: readonly CheckoutSubscription[] | undefined): CheckoutProduct[];
64
+ /**
65
+ * Build the request payload for a single product in the unified shape
66
+ * introduced by backend #760. Emits `type`, `code`, `name`, `quantity`,
67
+ * `totalAmount`, `overrideAmount`, `currency`, and optional `metadata`.
68
+ */
69
+ export declare function buildProductPayload(product: CheckoutProduct, sessionCurrency: string): Record<string, unknown>;
70
+ /**
71
+ * Build the request payload for a single item.
72
+ *
73
+ * @deprecated Use {@link buildProductPayload} with {@link foldIntoProducts}.
74
+ * Retained until the next major so external callers building the legacy
75
+ * `items[]` payload manually keep working.
76
+ */
77
+ export declare function buildItemPayload(item: CheckoutItem, sessionCurrency: string): Record<string, unknown>;
78
+ /**
79
+ * Build the request payload for a single subscription.
80
+ *
81
+ * @deprecated Use {@link buildProductPayload} with {@link foldIntoProducts}.
82
+ * Retained until the next major so external callers building the legacy
83
+ * `subscriptions[]` payload manually keep working.
84
+ */
85
+ export declare function buildSubscriptionPayload(subscription: CheckoutSubscription, sessionCurrency: string): Record<string, unknown>;
86
+ export {};
@@ -0,0 +1,57 @@
1
+ import type { AVSFieldConfig, ProcessPaymentParams } from './types.js';
2
+ /**
3
+ * The `/process` request a checkout form sends when it continues a tokenized
4
+ * payment itself (React's `SplitCardForm` `processPaymentInternal`, moved here
5
+ * so every UI binding sends the same billing fields and analytics metadata).
6
+ */
7
+ /** The billing inputs a checkout form holds when it posts `/process`. */
8
+ export interface CheckoutProcessAvsInput {
9
+ /** The resolved AVS config (`resolveAVSConfig(enableAVS)`), or none when AVS is off. */
10
+ avsConfig: AVSFieldConfig | null | undefined;
11
+ /** The buyer's selected billing country (ISO 3166-1 alpha-2). */
12
+ country: string;
13
+ zip?: string | null;
14
+ city?: string | null;
15
+ state?: string | null;
16
+ addressLine1?: string | null;
17
+ addressLine2?: string | null;
18
+ }
19
+ /** The analytics metadata a checkout form adds to its `/process` request. */
20
+ export interface CheckoutProcessMetadataInput extends CheckoutProcessAvsInput {
21
+ /** The form's `chv` prop, forwarded as is. */
22
+ chv?: string;
23
+ /** Whether AVS was enabled (the form's `avsCheck` prop). Sent as `false` when not set. */
24
+ avsCheck?: boolean;
25
+ /** `standard_checkout` or `embedded_checkout`. */
26
+ checkoutType?: string;
27
+ /** `default_layout`, `buttons_layout` or `custom_layout`. */
28
+ checkoutLayout?: string;
29
+ }
30
+ type ProcessAccountAddress = Pick<ProcessPaymentParams['accountData'], 'country' | 'zip' | 'city' | 'state' | 'addressLine1' | 'addressLine2'>;
31
+ /**
32
+ * The address part of `/process`'s `accountData`: nothing without AVS.
33
+ * With AVS, the country and each field that is visible for that country and
34
+ * filled. When line 1 is collected but the state is hidden, the state is
35
+ * derived from the postcode (US/CA) so the provider's AVS still gets one.
36
+ */
37
+ export declare function buildProcessPaymentAvsAccount(input: CheckoutProcessAvsInput): ProcessAccountAddress;
38
+ /**
39
+ * Which AVS fields were actually shown for the buyer's country, for
40
+ * analytics. Country-scoped rules (e.g. `['US', 'CA']`) are flattened to
41
+ * booleans. `undefined` without AVS.
42
+ */
43
+ export declare function buildProcessPaymentAvsExposure(avsConfig: AVSFieldConfig | null | undefined, country: string): AVSFieldConfig | undefined;
44
+ /**
45
+ * The checkout analytics metadata on `/process`, in the order the released
46
+ * form sends it: `chv`, `avsCheck` (`false` when not set), `checkoutType`,
47
+ * `checkoutLayout` and the AVS exposure.
48
+ */
49
+ export declare function buildCheckoutProcessMetadata(input: CheckoutProcessMetadataInput): Pick<ProcessPaymentParams, 'chv' | 'avsCheck' | 'checkoutType' | 'checkoutLayout' | 'avsConfig'>;
50
+ /** How the checkout is logged: React's `resolveCheckoutLogLayout`. */
51
+ export type CheckoutLogLayout = 'default_layout' | 'buttons_layout' | 'custom_layout';
52
+ /**
53
+ * The checkout layout a `FloPayCheckout` reports: `custom_layout` when the
54
+ * merchant renders its own layout, else the built-in form's layout.
55
+ */
56
+ export declare function resolveCheckoutLogLayout(hasCustomLayout: boolean, layout: 'default' | 'buttons' | undefined): CheckoutLogLayout;
57
+ export {};
@@ -0,0 +1,29 @@
1
+ /** FloPay environment — determines which billing API URL is used. */
2
+ export type FloPayEnvironment = 'staging' | 'production' | 'local';
3
+ /**
4
+ * Configure the FloPay SDK globally. Call once at app startup.
5
+ *
6
+ * The environment determines which billing API URL is used for all
7
+ * FloPay operations (session creation, payment processing, etc.).
8
+ *
9
+ * @example
10
+ * ```ts
11
+ * import { configureFlopay } from '@flopay/shared';
12
+ *
13
+ * // In production
14
+ * configureFlopay({ environment: 'production' });
15
+ *
16
+ * // In staging/development
17
+ * configureFlopay({ environment: 'staging' });
18
+ * ```
19
+ *
20
+ * Alternatively, set the `NEXT_PUBLIC_FLOPAY_ENV` environment variable
21
+ * to `'staging'` or `'production'` — the SDK reads it automatically.
22
+ */
23
+ export declare function configureFlopay(config: {
24
+ environment: FloPayEnvironment;
25
+ }): void;
26
+ /** Get the billing API URL for the currently configured environment. */
27
+ export declare function getConfiguredBillingApiUrl(): string;
28
+ /** Get the current configured environment. */
29
+ export declare function getFloPayEnvironment(): FloPayEnvironment;