import type PortalItem from "@arcgis/core/portal/PortalItem"; import type { RequestHelper } from "@vertigis/arcgis-extensions/utilities/RequestHelper"; import type { AppConfig } from "../AppConfig"; /** * A component that can provide access to configuration that is externally * referenced in an App. */ export interface ConfigResolver { /** * Gets App JSON configuration by URL. * * @param url The URL corresponding to the App configuration to get. * @returns The requested App configuration. * @throws {NotFoundError} The App configuration couldn't be found. * @throws {AccessDeniedError} The current user does not have permission to * access the given App configuration. */ getAppConfig(url: string | PortalItem): Promise; } /** * Default config resolver that fetches configuration from a REST endpoint or a * portal item. */ export declare class DefaultConfigResolver implements ConfigResolver { /** * The request helper to use when making requests. */ requestHelper: RequestHelper; /** * @inheritdoc */ getAppConfig(url: string | PortalItem): Promise; }