import { ClientRequestContext } from "@bentley/bentleyjs-core"; import { AccessToken, IncludePrefix } from "../Token"; import { UserInfo } from "../UserInfo"; import { IModelAuthorizationClient } from "../IModelCloudEnvironment"; /** * Implements AccessToken that uses Basic access authentication * @internal */ export declare class BasicAccessToken extends AccessToken { private _prefix; private _token; /** * Create a BasicAccessToken from user credentials * @param userCredentials User credentials containing email and password of the user. */ static fromCredentials(userCredentials: any): AccessToken; /** * Creates a token to be used in Authorization header. * @param includePrefix Set to Yes if prefix (Basic) should be included before the token. */ toTokenString(includePrefix?: IncludePrefix): string; } /** Implements the user permission abstraction by creating a BasicAccessToken. Note that the corresponding IModelBank server must * be able to tolerate this BasicAccessToken. * @internal */ export declare class BasicAuthorizationClient implements IModelAuthorizationClient { private _token?; authorizeUser(_requestContext: ClientRequestContext, _userInfo: UserInfo | undefined, userCredentials: any): Promise; isAuthorized: boolean; hasExpired: boolean; hasSignedIn: boolean; getAccessToken(_requestContext?: ClientRequestContext): Promise; } //# sourceMappingURL=BasicAuthorizationClient.d.ts.map