type availableContexts = { locationContexts: Array; userStateContexts: Array } declare global { interface Window { SPCAssetManager: { api: string; nonce: string; assets: Record; currentContext: Record; availableContexts: availableContexts; existingRules: Record; cssURL: string; otherExclusions: Record>; }; } } type Asset = { handle: string; asset_hash: string; name: string; asset_type: string; origin_type: 'css' | 'js'; asset_url: string; size: string; is_inline: boolean; parent_handle: string | null; content: string | null; dependencies: string[]; version: boolean; category: string; locationContexts?: string[]; userStateContexts?: string[]; }; export { Asset };