import type { FetchLike } from "./http.js"; export interface GoogleAccessTokenOptions { env?: NodeJS.ProcessEnv; fetchImpl?: FetchLike; /** Injectable clock for tests. Defaults to Date.now. */ now?: () => number; } /** * Build a token getter. * * Resolution order, checked on every call so a rotated env var is picked up: * * 1. `GOOGLE_ACCESS_TOKEN` - returned as-is, unchanged behavior. * 2. `GOOGLE_CLIENT_ID` + `GOOGLE_CLIENT_SECRET` + `GOOGLE_REFRESH_TOKEN` - * exchanged for an access token and cached until shortly before it expires. * 3. Neither - throws the same message the packs threw before, so a * misconfigured deployment fails the way its docs describe. * * The credential is read inside the returned function, never at import * (ADR-0007). */ export declare function googleAccessToken(opts?: GoogleAccessTokenOptions): () => Promise; //# sourceMappingURL=googleAuth.d.ts.map