import type { RouteLocationNormalizedLoaded, Router } from 'vue-router'; import type { CwaModuleOptions, CwaResourcesMeta } from '#cwa/types'; import type { FetchEvent, FetchResourceEvent } from './api/fetcher/fetcher.js'; import type { ApiDocumentationComponentMetadataCollection } from './api/api-documentation.js'; import type { CwaApiDocumentationDataInterface } from './storage/stores/api-documentation/state.js'; import CwaFetch from './api/fetcher/cwa-fetch.js'; import { ResourcesManager } from './resources/resources-manager.js'; import { Resources } from './resources/resources.js'; import Auth from './api/auth.js'; import Forms from './api/forms.js'; import Admin from './admin/admin.js'; import { ComponentGroupReorders } from './admin/component-group-reorder.js'; import SiteConfig from '#cwa/api/site-config'; import OrphanedResources from '#cwa/api/orphaned-resources'; export default class Cwa { private readonly apiUrl; private readonly options; private readonly storage; private readonly apiDocumentation; private readonly mercure; private readonly fetcher; private readonly fetchStatusManager; readonly cwaFetch: CwaFetch; readonly siteConfig: SiteConfig; readonly prerendered: import("vue").Ref; readonly resources: Resources; readonly resourcesManager: ResourcesManager; readonly auth: Auth; readonly forms: Forms; readonly orphanedResources: OrphanedResources; readonly admin: Admin; private readonly adminNavGuard; /** @internal */ readonly componentGroupReorders: ComponentGroupReorders; readonly currentModulePackageInfo: { version: string; name: string; }; constructor($router: Router, options: CwaModuleOptions, currentModulePackageInfo: { version: string; name: string; }); get apiHttpCacheState(): import("./api/http-cache.js").ApiCacheDirectives; get adminNavigationGuardFn(): (toRoute: import("vue-router").RouteLocationNormalized, fromRoute: import("vue-router").RouteLocationNormalized) => boolean | { path: string; query: import("vue-router").LocationQuery; hash: string; }; get navigationDisabled(): boolean; getApiDocumentation(refresh?: boolean): Promise; getComponentMetadata(refresh?: boolean, includePosition?: boolean): Promise; fetchResource(event: FetchResourceEvent): Promise; fetchRoute(route: RouteLocationNormalizedLoaded): Promise; fetch(event: FetchEvent): import("./api/fetcher/fetcher.js").CwaFetchResponseRaw; clearPrimaryFetch(): void; initClientSide(): Promise; get isStaticRender(): boolean; get resourcesConfig(): CwaResourcesMeta; setResourceMeta(meta: CwaResourcesMeta): void; get layoutsConfig(): { [type: string]: import("#cwa/types").CwaUiMeta; } | undefined; get pagesConfig(): { [type: string]: import("#cwa/types").CwaUiMeta; } | undefined; get pageDataConfig(): { [resourceClass: string]: Pick & { properties?: { [propertyName: string]: string; }; metaFields?: { field: string; type: "input" | "select"; label: string; options?: import("#imports").SelectOption[]; }[]; }; } | undefined; get uploadConfig(): { image?: Partial; } | undefined; get realtimeConfig(): { enabled?: boolean; } | undefined; get config(): import("#cwa/types").SiteConfigParams; get apiUrlBase(): string; addUniquePromise(scope: string, key: string, fn: () => Promise): Promise | undefined; }