import { SDKUtils } from "../models/common"; /** * Checks if the site is uninstalled or inactive * Site states <= 2 are considered active: * - 0: AFTER_EXTENSION_INSTALL_SITE_STATE (product sync in progress) * - 1: HAS_PRODUCTS_SITE_STATE (synced products) * - 2: LIVE_SITE_STATE (active and live) * * Site states > 2 are considered uninstalled/inactive: * - 3: REMOVING_PRODUCTS_SITE_STATE * - 10: FETCHING_PRODUCTS_FAILED_SITE_STATE * - 11: SITE_DOWN_SITE_STATE * - 12: NO_JS_IN_PAGE_SITE_STATE * - 13: UNINSTALLED_SITE_STATE * - 14: DEACTIVATE_SITE_STATE * - 99: OVER_CAPACITY_SITE_STATE * - 4: UNAUTHORISED_ACCESS_SITE_STATE */ export declare const isUninstalledSite: (sdkUtils: SDKUtils) => boolean; /** * Validates the site state before making API requests * Logs a console error if the site is uninstalled * Returns true if the site is valid (can make requests), false otherwise */ export declare const validateSiteState: (sdkUtils: SDKUtils) => boolean;