/** @packageDocumentation * @module iModelHubClient */ import { ClientRequestContext } from "@bentley/bentleyjs-core"; import { IModelClient } from "../IModelClient"; import { FileHandler } from "../imodeljs-clients"; import { AccessToken, AuthorizationToken } from "../Token"; import { IModelBaseHandler } from "./BaseHandler"; /** * Class that allows access to different iModelHub class handlers. Handlers should be accessed through an instance of this class, rather than constructed directly. * @beta */ export declare class IModelHubClient extends IModelClient { /** * Create an instance of IModelHubClient. * @param fileHandler File handler to handle file upload/download and file system operations. * @param iModelBaseHandler WSG Client for iModel Hub operations. */ constructor(fileHandler?: FileHandler, iModelBaseHandler?: IModelBaseHandler); /** * Get the (delegation) access token to access the service * @param requestContext The client request context * @param authorizationToken Authorization token. * @returns Resolves to the (delegation) access token. * @throws [[IModelHubClientError]] with [IModelHubStatus.UndefinedArgumentError]($bentley) if authorizationToken is undefined. * @throws [[ResponseError]] if request to delegation service failed. * @throws Error if failed to parse response. * @internal */ getAccessToken(requestContext: ClientRequestContext, authorizationToken: AuthorizationToken): Promise; } //# sourceMappingURL=Client.d.ts.map