import type { ComputedRef } from 'vue'; import type { ResourcesStore } from '../storage/stores/resources/resources-store.js'; import type { CwaCurrentResourceInterface } from '../storage/stores/resources/state.js'; import type { FetcherStore } from '../storage/stores/fetcher/fetcher-store.js'; import type { NestedJsonStructure } from '../storage/stores/fetcher/state.js'; import type { CwaResource } from './resource-utils.js'; import type { AddResourceEvent } from '#cwa/admin/resource-stack-manager'; export interface PageLoadStatus { resources: (string | undefined)[]; total: number; complete: number; percent: number; } export declare class Resources { readonly resourcesStoreDefinition: ResourcesStore; readonly fetcherStoreDefinition: FetcherStore; private readonly _resourcesStore; private readonly _fetcherStore; constructor(resourcesStoreDefinition: ResourcesStore, fetcherStoreDefinition: FetcherStore); get currentIds(): string[]; get allIds(): string[]; isIriPublishableEquivalent(oldIri: string, newIri: string): boolean; findAllPublishableIris(iri: string): string[]; getResource(id: string): ComputedRef; getChildIris(iri: string, addResourceEvent: undefined | AddResourceEvent): string[]; get newResource(): ComputedRef; getComponentGroupByReference(reference: string): CwaCurrentResourceInterface | undefined; get currentResources(): { [key: string]: CwaCurrentResourceInterface; }; private get displayFetchStatus(); private get pageLoadResources(); get pageLoadProgress(): ComputedRef; isPageDataResource(iri: string): ComputedRef; private getFetchStatusType; private getLayoutIriByFetchStatus; private getPageIriFromDepthGroup; private getPageDataIriFromDepthGroup; pageIriAtDepth(depth?: number): ComputedRef; pageDataIriOf(iri: string): ComputedRef; positionComponentIri(positionIri: string, depth?: number): ComputedRef; pageDataIriAtDepth(depth?: number): ComputedRef; pageAtDepth(depth?: number): ComputedRef; pageDataAtDepth(depth?: number): ComputedRef; get depthCount(): ComputedRef; private getPageIriByFetchStatus; private getPageDataIriByFetchStatus; get pageDataIri(): ComputedRef; get pageData(): ComputedRef; get pageIri(): ComputedRef; get page(): ComputedRef; get displayResourceTree(): NestedJsonStructure[] | undefined; get displayPageIri(): ComputedRef; get displayPage(): ComputedRef; get layoutIri(): ComputedRef; get layout(): ComputedRef; findPublishedComponentIri(iri: string): ComputedRef; findDraftComponentIri(iri: string): ComputedRef; get getOrderedPositionsForGroup(): (groupIri: string, includeNewIri?: boolean) => string[] | undefined; get getPositionSortDisplayNumber(): (groupIri: string, includeNewIri?: boolean) => number | undefined; getRefreshEndpointsForDelete(iri: string): string[]; get isLoading(): ComputedRef; get resourceLoadStatus(): import("../storage/stores/resources/getters.js").ResourcesLoadStatusInterface; private get fetcherStore(); private get resourcesStore(); get usesPageTemplate(): ComputedRef; get isDataPage(): ComputedRef; get isDynamicPage(): ComputedRef; get hasNewResources(): boolean; getPendingResource(iri: string): { resource: CwaResource; path?: string; } | undefined; }