import type { SiteConfigStore } from '#cwa/storage/stores/site-config/site-config-store'; import type CwaFetch from '#cwa/api/fetcher/cwa-fetch'; import type { SiteConfigParams } from '#cwa/types'; import type { CwaResource } from '#cwa/resources/resource-utils'; import type { PageCacheWarmProgress, PageCacheWarmSummary } from '#cwa/api/page-cache-warm'; export default class SiteConfig { private readonly cwaFetch; private readonly storeDefinition; private readonly userConfig; private utils; private readonly _store; private readonly _apiState; constructor(cwaFetch: CwaFetch, storeDefinition: SiteConfigStore, userConfig: Partial); loadConfig(eventContext?: Record): Promise; saveConfig(newConfig: Partial): Promise<{ totalConfigsChanged: number; }>; purgePageCache(): Promise; purgeHttpCache(body?: { paths?: string[]; tags?: string[]; }): Promise; warmPageCache(onProgress: (progress: PageCacheWarmProgress) => void): Promise; get totalRequests(): import("vue").ComputedRef; get apiState(): { requests: import("vue").Ref<{ then: (onfulfilled?: ((value: CwaResource | undefined) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise; catch: (onrejected?: ((reason: any) => TResult | PromiseLike) | null | undefined) => Promise; finally: (onfinally?: (() => void) | null | undefined) => Promise; readonly [Symbol.toStringTag]: string; }[], Promise[] | { then: (onfulfilled?: ((value: CwaResource | undefined) => TResult1 | PromiseLike) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike) | null | undefined) => Promise; catch: (onrejected?: ((reason: any) => TResult | PromiseLike) | null | undefined) => Promise; finally: (onfinally?: (() => void) | null | undefined) => Promise; readonly [Symbol.toStringTag]: string; }[]>; hasError: import("vue").Ref; }; get isLoading(): boolean; get savedSiteConfig(): Partial | undefined; get config(): SiteConfigParams; private get store(); }