import { IGetOAuthAppOptions, IOAuthApp } from "./shared/types/oAuthType.js"; /** * Used to retrieve the OAuth2.0 app with given `itemId`. See the [OAuth2.0](https://developers.arcgis.com/documentation/mapping-apis-and-services/security/oauth-2.0/) for more information. * * ```js * import { getOAuthApp, IOAuthApp } 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" * }); * * getOAuthApp({ * itemId: "xyz_itemId", * authentication: authSession * }).then((retrievedOAuthApp: IOAuthApp) => { * // => {redirect_uris: ["http://localhost:3000/"], item: {tags: ["xyz_tag1", "xyz_tag2"], ...}, ...} * }).catch(e => { * // => an exception object * }); * ``` * * @param requestOptions - Options for {@linkcode getOAuthApp | getOAuthApp()}, including `itemId` of which OAuth app to retrieve and an {@linkcode @esri/arcgis-rest-request!ArcGISIdentityManager} authentication session. * @returns A Promise that will resolve to an {@linkcode IOAuthApp} object representing successfully retrieved OAuth app. */ export declare function getOAuthApp(requestOptions: IGetOAuthAppOptions): Promise;