UNPKG

dodopayments-checkout

Version:

A TypeScript library for embedding Dodo Payments checkout (overlay and inline).

22 lines (21 loc) 628 B
/** * Resource hints module for optimizing resource loading */ import { CheckoutMode, DisplayType } from "./types"; interface ResourceHintOptions { mode: CheckoutMode; displayType?: DisplayType; } /** * Inject preconnect and dns-prefetch hints for checkout domains */ export declare function injectResourceHints(options: ResourceHintOptions): void; /** * Preload the Dodo SDK script (used by inline checkout for the wallet element). */ export declare function preloadDodoSdk(mode: CheckoutMode): void; /** * Cleanup all injected resource hints */ export declare function cleanupResourceHints(): void; export {};