/** * Global window type extensions for WordPress plugin data */ declare global { interface Window { WORDPRESS_SITE_URL?: string; JAAK_WORDPRESS_REST_ROOT?: string; JAAK_SITE_BASE_URL?: string; JAAK_IS_CONFIGURED?: boolean; JAAK_VERSION?: string; JAAK_WP_VERSION?: string; JAAK_WC_VERSION?: string | null; JAAK_PHP_VERSION?: string; JAAK_WP_USER?: { id: string; email: string; username: string } | null; /** * When `true`, skip any merchant-specific address parser and fall back to * the default WC field mapping. Toggled by the merchant via the * "Force default address parser" checkbox in WC > Settings > Integration. */ JAAK_IS_FORCE_DEFAULT_ADDRESS_PARSER?: boolean; // Always populated by Admin_Assets::localize_script_data (defaults to // 'production' when the JAAK_SENTRY_ENV wp-config constant is undefined), // so this is non-optional — no JS-side default needed. JAAK_SENTRY_ENV: string; wp_api_settings?: { nonce?: string; }; } } export {};