/** * This file was auto-generated by Fern from our API Definition. */ import * as core from "../../core"; import { Auth } from "../../api/resources/auth/client/Client"; /** * The OAuthTokenProvider retrieves an OAuth access token, refreshing it as needed. * The access token is then used as the bearer token in every authenticated request. */ export declare class OAuthTokenProvider { private readonly BUFFER_IN_MINUTES; private readonly _clientId; private readonly _clientSecret; private readonly _authClient; private _accessToken; private _expiresAt; constructor({ clientId, clientSecret, authClient, }: { clientId: core.Supplier; clientSecret: core.Supplier; authClient: Auth; }); getToken(): Promise; private refresh; private getExpiresAt; }