import { IGetAppInfoOptions, IApp } from "./types/appType.js"; /** * Used to retrieve registered app info. See the [REST Documentation](https://developers.arcgis.com/rest/users-groups-and-items/registered-app-info.htm) for more information. * * ```js * import { getRegisteredAppInfo, IApp } from '@esri/arcgis-rest-developer-credentials'; * import { ArcGISIdentityManager } from "@esri/arcgis-rest-request"; * * const authSession: ArcGISIdentityManager = await ArcGISIdentityManager.signIn({ * username: "xyz_usrName", * password: "xyz_pw" * }); * * getRegisteredAppInfo({ * itemId: "xyz_itemId", * authentication: authSession * }).then((registeredApp: IApp) => { * // => {client_id: "xyz_id", client_secret: "xyz_secret", ...} * }).catch(e => { * // => an exception object * }); * ``` * * @param requestOptions - Options for {@linkcode getRegisteredAppInfo | getRegisteredAppInfo()}, including an itemId of which app to retrieve and an {@linkcode @esri/arcgis-rest-request!ArcGISIdentityManager} authentication session. * @returns A Promise that will resolve to an {@linkcode IApp} object representing successfully retrieved app. */ export declare function getRegisteredAppInfo(requestOptions: IGetAppInfoOptions): Promise;