/** * Defines the target backend used by {@link Client}. * * Should be constructed using {@link backendConfiguration}. */ export interface BackendConfiguration { /** * Origin of the backend, use empty string for relative resolution */ readonly origin: string; /** * Backend's URL to resolve the loading graph */ readonly urlLoadingGraph: string; /** * Backend's URL used to fetch the raw content of a package */ readonly urlResource: string; /** * id of the configuration */ readonly id?: string; } /** * Construct a backend configuration. * * @param pathLoadingGraph path of the end-point to query the loading graph * @param pathRawPackage path of the end-point to fetch the bundle of a package * @param origin origin of the backend * @param id id associated to the configuration */ export declare function backendConfiguration({ pathLoadingGraph, pathResource, origin, id, }: { id?: string; pathLoadingGraph: string; pathResource: string; origin?: { secure?: boolean; hostname?: string; port?: number; } | string; }): BackendConfiguration;