/** * @one-payments/web-components - Browser Entry Point (IIFE Bundle) * * This file is used ONLY for the browser/CDN bundle (IIFE format). * It is completely separate from the existing ESM build and does NOT * affect React, Vue, Angular, or any other framework wrappers. * * Responsibilities: * - Safely register the custom element (if not already registered) * - Expose a minimal global window.OnePayments API * - Be safe if loaded multiple times (no hard crashes) * * Usage (CDN): * * * * * @module @one-payments/web-components/browser */ import { createWebAdapters } from '@one-payments/adapters-web'; declare const TAG_NAME = "one-payment"; declare const VERSION: string; /** * Minimal global API exposed on window.OnePayments for CDN consumers. * * This API is intentionally small and stable. Only add new properties * if absolutely necessary for CDN integrations. */ declare const OnePayments: { /** * Factory to create standard web adapters for browser environment. * * This is the primary way CDN consumers configure the component: * ```javascript * const adapters = OnePayments.createWebAdapters(); * element.adapters = adapters; * ``` */ createWebAdapters: typeof createWebAdapters; /** * The registered custom element tag name. * Always 'one-payment'. */ TAG_NAME: string; /** * Runtime version of this package. * Useful for debugging and support. */ VERSION: string; /** * Check if the custom element is registered. * @returns {boolean} true if is registered */ isRegistered(): boolean; /** * Wait for the custom element to be defined. * Useful if you need to ensure the element is ready before use. * @returns {Promise} */ whenDefined(): Promise; }; declare global { interface Window { OnePayments?: typeof OnePayments; } } export default OnePayments; export { OnePayments, createWebAdapters, TAG_NAME, VERSION }; //# sourceMappingURL=browser-entry.d.ts.map