import { AnyizeCSM } from '../AnyizeCSM'; import { SpecificStepCSM } from '../SpecificStepCSM'; import { SpecificPageCSM } from '../SpecificPageCSM'; import { OrderStatusCSM } from '../OrderStatusCSM'; import { IOptions } from '../shared/types'; /** * * @example * checkoutStepManager.onAnySectionRepaint().forContactInformationStep().execute(callback); * checkoutStepManager.forShippingMethodStep().execute(callback) */ export declare class CheckoutStepManager { private _eventManager; /** * When creating an instance of CheckoutStepManager you * can specify options. Currently, you can only specify if you * want the CheckoutStepManager to log information about when * callbacks were executed during runtime. * * @param options {Object} */ constructor(options: IOptions); /** * This covers the case when you need to react to section updates (repaints) * that does not include full page reloads. */ forAnyRepaint: () => AnyizeCSM; /** * Perform work on any Checkout step * * For reference as to what the Shopify Checkout steps are * @see https://help.shopify.com/en/themes/development/layouts/checkout#shopify-checkout-step */ forAnyStep: () => AnyizeCSM; /** * Perform work on any Checkout "page" * * For reference as to what the Shopify Checkout pages are * @see https://help.shopify.com/en/themes/development/layouts/checkout#shopify-checkout-page */ forAnyPage: () => AnyizeCSM; forContactInformationStep: () => SpecificStepCSM; forShippingMethodStep: () => SpecificStepCSM; forPaymentMethodStep: () => SpecificStepCSM; forProcessingStep: () => SpecificStepCSM; forReviewStep: () => SpecificStepCSM; forShowPage: () => SpecificPageCSM; forStockProblemsPage: () => SpecificPageCSM; forProcessingPage: () => SpecificPageCSM; forForwardPage: () => SpecificPageCSM; forThankYouPage: () => SpecificPageCSM; /** * Order Status is a special page that exists during checkout and * after a customer has purchased their products. * * For more info @see https://help.shopify.com/en/themes/development/layouts/checkout#shopify-checkout-orderstatus */ forOrderStatus: () => OrderStatusCSM; }