/************************************************************************* * Copyright 2020 Adobe * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute this file in * accordance with the terms of the Adobe license agreement accompanying * it. If you have received this file from a source other than Adobe, * then your use, modification, or distribution of it requires the prior * written permission of Adobe. **************************************************************************/ /** * API used to integrate as solution web application with the unified shell of the Adobe Experience * Cloud. * @packageDocumentation * @preferred */ import { getEMR } from './src/Global'; import Runtime from './src/Runtime'; export type { RuntimeConfiguration } from './RuntimeConfiguration'; /** * Get the runtime object which contains all unified-shell APIs. * * ***Example:*** * * ```typescript * import React from 'react'; * import ReactDOM from 'react-dom'; * import excApp from '@adobe/exc-app'; * * export class MyComponent extends React.Component { * constructor(props) { * this.runtime = excApp(); * } * } * ``` * @returns The runtime object. */ export default function runtime(): Runtime; /** * Initializes a solution web application by invoking the bootstrap callback * once the runtime is ready. * 1. if the module is already defined, start to bootstrap * 2. otherwise define the global callback that will be called when runtime is ready. * * ***Example:*** * * ```typescript * import React from 'react'; * import ReactDOM from 'react-dom'; * import runtime, {init} from '@adobe/exc-app'; * * init(() => { * ReactDOM.render(, document.querySelector('#main')); * }); * ``` * @param bootstrap Callback used to bootstrap a solution. The runtime object is passed in as a * parameter to this callback. */ export declare function init(bootstrap: (runtime: Runtime) => void): void; export { getEMR }; export declare function isNested(): boolean; export type { Runtime };