import type { OAuth2Client } from 'google-auth-library'; /** Run `fn` with `auth` as the active identity for the current async context. */ export declare function runWithAuth(auth: OAuth2Client, fn: () => T): T; /** The active per-request auth, or `undefined` outside any identity context. */ export declare function getActiveAuth(): OAuth2Client | undefined; /** * Resolve the auth to use right now: the active per-request identity if one is * set, otherwise `fallback` (the server's default/global identity). */ export declare function resolveAuth(fallback: OAuth2Client): OAuth2Client; //# sourceMappingURL=identityContext.d.ts.map