import type { PaymentSessionOptions, PaymentSessionResponse, ConfirmPaymentResponse } from './types.js'; /** * Configuration options for instantiating the Orchestrator. A public key * obtained from the orchestrator backend is required; you may also * optionally specify the base URL of the API if different from the * script host. */ export interface OrchestratorOptions { /** Public key issued to merchants for authenticating browser requests. */ publicKey: string; /** Base URL for the orchestrator API. Defaults to the origin hosting this script. */ apiBaseUrl?: string; } /** * Main entry point for merchants integrating with the payment orchestrator. * The Orchestrator manages creation of payment sessions, mounting of * provider specific card forms and confirmation of payments. It hides * the complexity of dealing with individual PSP SDKs behind a single * unified interface. */ export declare class Orchestrator { private readonly publicKey; private readonly apiBaseUrl; private providerAdapter; private session; constructor(options: OrchestratorOptions); /** * Internal helper to perform a POST request to the orchestrator API. * Automatically injects the public key header required for authentication. */ private post; /** * Create a new payment session. The orchestrator will choose a provider * based on your routing rules and return configuration for that provider. * The returned session information is stored internally for subsequent * steps. Calling this method multiple times will replace any existing * session and reset mounted card forms. */ createPaymentSession(options: PaymentSessionOptions): Promise; /** * Mount the card form associated with the chosen provider into the DOM. Must * be called after createPaymentSession() and will throw if no session * exists. Repeated calls will re‑mount the form, discarding previous * input. */ mountCardForm(selector: string): Promise; /** * Tokenise the card details and confirm the payment with the orchestrator. * This method tokenises via the provider SDK and sends the resulting * token back to your backend along with the current session ID. The * response contains provider agnostic information about the final * transaction state. */ confirmPayment(): Promise; } //# sourceMappingURL=Orchestrator.d.ts.map