import { AwaitableFunction } from "../types/helper.mjs"; import { OAuth2Tokens, ProviderOptions } from "./oauth-provider.mjs"; //#region src/oauth2/client-credentials-token.d.ts declare function clientCredentialsTokenRequest({ options, scope, authentication, resource }: { options: AwaitableFunction; scope?: string | undefined; authentication?: ("basic" | "post") | undefined; resource?: (string | string[]) | undefined; }): Promise<{ body: URLSearchParams; headers: Record; }>; /** * @deprecated use async'd clientCredentialsTokenRequest instead */ declare function createClientCredentialsTokenRequest({ options, scope, authentication, resource }: { options: ProviderOptions & { clientSecret: string; }; scope?: string | undefined; authentication?: ("basic" | "post") | undefined; resource?: (string | string[]) | undefined; }): { body: URLSearchParams; headers: Record; }; declare function clientCredentialsToken({ options, tokenEndpoint, scope, authentication, resource }: { options: AwaitableFunction; tokenEndpoint: string; scope: string; authentication?: ("basic" | "post") | undefined; resource?: (string | string[]) | undefined; }): Promise; //#endregion export { clientCredentialsToken, clientCredentialsTokenRequest, createClientCredentialsTokenRequest }; //# sourceMappingURL=client-credentials-token.d.mts.map