import type { PurpleDotAvailability } from "./availability"; import type { Cart, CartItem } from "./cart"; /** * Global Purple Dot configuration. */ export interface PurpleDotConfig { /** * The Purple Dot API key for the store. */ apiKey: string; /** * Optional cart adapter for working with the combined checkout. */ cartAdapter?: Cart; /** * Optional default hook for checking the in stock availability of a product. */ inStockAvailability?: (request: { variantId: string; } | { productHandle: string; }, getPreorderState: () => Promise) => Promise; /** * Optional locale string to set on checkout web components. */ locale?: string; } export declare function setConfig(newConfig: PurpleDotConfig): void; export declare function getConfig(): PurpleDotConfig | null;