/** * Plugin Configuration Hook * * Professional SDK approach to access plugin configuration: * - Raw Config: Direct configuration passed via TagadaProvider (highest priority) * - Store ID, Account ID, Base Path: from .local.json (dev) or headers (production) * - Deployment Config: from config/*.json (dev) or meta tags (production) * * Usage: * 1. Raw config (recommended for programmatic usage): * * * 2. File-based config (for development): * - .local.json for store/account info * - config/default.tgd.json for deployment config * * 3. Production config: * - Headers for store/account info * - Meta tags for deployment config */ export interface PluginConfig> { storeId?: string; accountId?: string; basePath?: string; config?: TConfig; staticResources?: Record; } export interface RawPluginConfig> { storeId?: string; accountId?: string; basePath?: string; config?: TConfig; } export interface LocalDevConfig { storeId: string; accountId: string; basePath: string; } /** * Load plugin configuration (cached) * Tries raw config first, then local dev config, then production config */ export declare const loadPluginConfig: (configVariant?: string, rawConfig?: RawPluginConfig) => Promise; /** * Main hook for plugin configuration * Gets config from TagadaProvider context (no parameters needed) */ export declare const usePluginConfig: >() => { storeId: string | undefined; accountId: string | undefined; basePath: string; config: TConfig; loading: boolean; }; /** * Specific hook for basePath only */ export declare const useBasePath: () => { basePath: string; loading: boolean; }; /** * Get cached config directly (for non-React usage) */ export declare const getPluginConfig: (configVariant?: string, rawConfig?: RawPluginConfig) => Promise; /** * Clear the config cache (useful for testing) */ export declare const clearPluginConfigCache: () => void; /** * Development helper to log current configuration */ export declare const debugPluginConfig: (configVariant?: string, rawConfig?: RawPluginConfig) => Promise;