import { AwaitableFunction } from "../types/helper.mjs"; import { OAuth2Tokens, ProviderOptions } from "./oauth-provider.mjs"; //#region src/oauth2/refresh-access-token.d.ts declare function refreshAccessTokenRequest({ refreshToken, options, authentication, extraParams, resource }: { refreshToken: string; options: AwaitableFunction>; authentication?: ("basic" | "post") | undefined; extraParams?: Record | undefined; resource?: (string | string[]) | undefined; }): Promise<{ body: URLSearchParams; headers: Record; }>; /** * @deprecated use async'd refreshAccessTokenRequest instead */ declare function createRefreshAccessTokenRequest({ refreshToken, options, authentication, extraParams, resource }: { refreshToken: string; options: ProviderOptions; authentication?: ("basic" | "post") | undefined; extraParams?: Record | undefined; resource?: (string | string[]) | undefined; }): { body: URLSearchParams; headers: Record; }; declare function refreshAccessToken({ refreshToken, options, tokenEndpoint, authentication, extraParams }: { refreshToken: string; options: Partial; tokenEndpoint: string; authentication?: ("basic" | "post") | undefined; extraParams?: Record | undefined; }): Promise; //#endregion export { createRefreshAccessTokenRequest, refreshAccessToken, refreshAccessTokenRequest }; //# sourceMappingURL=refresh-access-token.d.mts.map