/* Copyright IBM Corp. 2018 */ import { CYCLE_HANDLING, HttpResourceOptions, HubInfoConfig, HubInfoUrlProvider } from './../../../api'; export declare class HubInfoService implements HubInfoConfig { /** * URL to access the API layer * * Naming of this field according to the field in the rendering context * * @example 'https://my.digitalexperience.ibm.com/api/345563cf-a83c-40e5-a065-1d6ff36b05c1' * @example 'https://my.digitalexperience.ibm.com/api/345563cf-a83c-40e5-a065-1d6ff36b05c1/dxsites/mysite' */ readonly apiUrl?: HubInfoUrlProvider; /** * URL to access the delivery * * Naming of this field according to the field in the rendering context * * @example 'https://my.digitalexperience.ibm.com/345563cf-a83c-40e5-a065-1d6ff36b05c1' * @example 'https://my.digitalexperience.ibm.com/345563cf-a83c-40e5-a065-1d6ff36b05c1/dxsites/mysite' */ readonly deliveryUrl?: HubInfoUrlProvider; /** * URL that represents the base URL of the path based routing of the application. This prefix will be * preserved when generating and recognizing URLs. If this property is not configured, then it will be decoded * from the window location. * * @example 'https://my.digitalexperience.ibm.com/345563cf-a83c-40e5-a065-1d6ff36b05c1' * @example 'https://my.digitalexperience.ibm.com/345563cf-a83c-40e5-a065-1d6ff36b05c1/dxsites/mysite' * @example 'https://my.external.example.com/' */ readonly baseUrl?: HubInfoUrlProvider; /** * Optionally specify how the SDK makes outbound requests */ readonly httpOptions?: HttpResourceOptions; /** * Optionally specify how the SDK makes outbound requests for the preview case */ readonly httpPreviewOptions?: HttpResourceOptions; /** * Optionally specify how the SDK is supposed to deal with * cyclic references in the content data structure. Per default * the rendering context will break cycles by representing the duplicate * element in a reference path by an unresolved reference. When configuring * the strategy to {@link CYCLE_HANDLING.RESOLVE}, the {@link ContentrefComponent} * will use a resolved refence when rendering the context, instead of the unresolved * reference. This bears the risk of an infinite loop during rendering. The * actual rendering context objects will still not have cycles, so a JSON serialization * of these objects will produce a valid result. * * Default is {@link CYCLE_HANDLING.BREAK} */ readonly cycleHandlingStrategy?: CYCLE_HANDLING | string; /** * Number of levels to fetch per request to the rendering context. If missing * all levels will be fetched. */ readonly fetchLevels?: number; constructor(aApiUrl: HubInfoUrlProvider, aDeliveryUrl: HubInfoUrlProvider, aBaseUrl: HubInfoUrlProvider, aHttpOptions: HttpResourceOptions, aHttpPreviewOptions: HttpResourceOptions, aCycleHandlingStrategy: CYCLE_HANDLING | string, aFetchLevels: number); } export declare function selectApiURL(aService?: HubInfoConfig): HubInfoUrlProvider; export declare function selectDeliveryURL(aService?: HubInfoConfig): HubInfoUrlProvider; export declare function selectBaseURL(aService?: HubInfoConfig): HubInfoUrlProvider; export declare function selectHttpOptions(aService?: HubInfoConfig): HttpResourceOptions; export declare function selectHttpPreviewOptions(aService?: HubInfoConfig): HttpResourceOptions; export declare function selectCycleHandlingStrategy(aService?: HubInfoConfig): CYCLE_HANDLING | string; export declare function selectFetchLevels(aService?: HubInfoConfig): number;