UNPKG

1.04 kBTypeScriptView Raw
1import { AwsClient, BaseExternalAccountClient, Compute, ExternalAccountClient, GoogleAuth, GoogleAuthOptions, IdentityPoolClient, Impersonated, JWT, OAuth2Client, ProjectIdCallback, UserRefreshClient } from 'google-auth-library';
2export declare class AuthPlus extends GoogleAuth {
3 JWT: typeof JWT;
4 Compute: typeof Compute;
5 OAuth2: typeof OAuth2Client;
6 GoogleAuth: typeof GoogleAuth;
7 AwsClient: typeof AwsClient;
8 IdentityPoolClient: typeof IdentityPoolClient;
9 ExternalAccountClient: typeof ExternalAccountClient;
10 private _cachedAuth?;
11 /**
12 * Override getClient(), memoizing an instance of auth for
13 * subsequent calls to getProjectId().
14 */
15 getClient(options?: GoogleAuthOptions): Promise<Compute | JWT | UserRefreshClient | BaseExternalAccountClient | Impersonated>;
16 /**
17 * Override getProjectId(), using the most recently configured
18 * auth instance when fetching projectId.
19 */
20 getProjectId(): Promise<string>;
21 getProjectId(callback: ProjectIdCallback): void;
22}